Skip to content

Commit 6df4c51

Browse files
authored
Merge pull request #1060 from merico-dev/1059-some-unexpected-styles-have-be-applied-to-viz-table
1059 some unexpected styles have be applied to viz table
2 parents 826bbd8 + bf09bc7 commit 6df4c51

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/api",
3-
"version": "10.5.2",
3+
"version": "10.5.3",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/dashboard",
3-
"version": "10.5.2",
3+
"version": "10.5.3",
44
"license": "Apache-2.0",
55
"publishConfig": {
66
"access": "public",

dashboard/src/plugins/viz-components/table/viz-table.styles.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,20 @@ export const useTableStyles = createStyles((theme) => ({
4040

4141
export const baseTableSX: Sx = {
4242
tableLayout: 'fixed',
43-
'th, td': {
44-
padding: '2px 10px',
45-
div: {
46-
overflow: 'hidden',
47-
textOverflow: 'ellipsis',
48-
},
49-
// for index column
50-
'&:first-of-type': {
51-
paddingLeft: 2,
52-
paddingRight: 2,
43+
'thead, tbody': {
44+
tr: {
45+
'th, td': {
46+
padding: '2px 10px',
47+
div: {
48+
overflow: 'hidden',
49+
textOverflow: 'ellipsis',
50+
},
51+
// for index column
52+
'&:first-of-type': {
53+
paddingLeft: 2,
54+
paddingRight: 2,
55+
},
56+
},
5357
},
5458
},
5559
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/root",
3-
"version": "10.5.2",
3+
"version": "10.5.3",
44
"private": true,
55
"workspaces": [
66
"api",

settings-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/settings-form",
3-
"version": "10.5.2",
3+
"version": "10.5.3",
44
"license": "Apache-2.0",
55
"publishConfig": {
66
"access": "public",

website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "@devtable/website",
33
"private": true,
44
"license": "Apache-2.0",
5-
"version": "10.5.2",
5+
"version": "10.5.3",
66
"scripts": {
77
"dev": "vite",
88
"preview": "vite preview"
99
},
1010
"dependencies": {
1111
"@ahooksjs/use-url-state": "^3.3.11",
12-
"@devtable/dashboard": "10.5.2",
13-
"@devtable/settings-form": "10.5.2",
12+
"@devtable/dashboard": "10.5.3",
13+
"@devtable/settings-form": "10.5.3",
1414
"@emotion/react": "11.10.6",
1515
"@faker-js/faker": "7.6.0",
1616
"@mantine/core": "6.0.16",

0 commit comments

Comments
 (0)