Skip to content

Commit

Permalink
fix: Dates alignment in Table viz (#19668)
Browse files Browse the repository at this point in the history
* Fix dates alignment

* Add package lock changes

* Update package-lock

* Clean up
  • Loading branch information
geido authored Apr 28, 2022
1 parent 3d2fec9 commit ed1309e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
29 changes: 12 additions & 17 deletions superset-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"@emotion/cache": "^11.4.0",
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@fontsource/inter": "^4.5.7",
"@superset-ui/chart-controls": "file:./packages/superset-ui-chart-controls",
"@superset-ui/core": "file:./packages/superset-ui-core",
"@superset-ui/legacy-plugin-chart-calendar": "file:./plugins/legacy-plugin-chart-calendar",
Expand Down Expand Up @@ -129,7 +130,6 @@
"emotion-rgba": "0.0.9",
"fast-glob": "^3.2.7",
"fontsource-fira-code": "^4.0.0",
"fontsource-inter": "^4.0.0",
"fs-extra": "^10.0.0",
"fuse.js": "^6.4.6",
"geolib": "^2.0.24",
Expand Down
4 changes: 4 additions & 0 deletions superset-frontend/plugins/plugin-chart-table/src/Styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export default styled.div`
border-top: 0;
}
.table > tbody tr td {
font-feature-settings: 'tnum' 1;
}
.dt-controls {
padding-bottom: 0.65em;
}
Expand Down
8 changes: 4 additions & 4 deletions superset-frontend/src/assets/stylesheets/less/fonts.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
/*************************************************************************/

/******************************* Inter UI ********************************/
@import '~fontsource-inter/200.css';
@import '~fontsource-inter/400.css';
@import '~fontsource-inter/500.css';
@import '~fontsource-inter/600.css';
@import '~@fontsource/inter/200.css';
@import '~@fontsource/inter/400.css';
@import '~@fontsource/inter/500.css';
@import '~@fontsource/inter/600.css';

/******************************* Fira Code ********************************/
@import '~fontsource-fira-code/400.css';
Expand Down

0 comments on commit ed1309e

Please sign in to comment.