Skip to content

Commit

Permalink
fix(grid): css variable not parseFloat (#2738)
Browse files Browse the repository at this point in the history
close #2733
  • Loading branch information
NWYLZW authored Jan 31, 2024
1 parent 9610b64 commit cabcbd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/grid/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export interface RowProps extends TdRowProps, StyledProps {
}

const calcSize = (width: number) => {
const smWidth = getCssVarsValue('--td-screen-sm') || 768;
const mdWidth = getCssVarsValue('--td-screen-md') || 992;
const lgWidth = getCssVarsValue('--td-screen-lg') || 1200;
const xlWidth = getCssVarsValue('--td-screen-xl') || 1400;
const xxlWidth = getCssVarsValue('--td-screen-xxl') || 1880;
const smWidth = parseFloat(getCssVarsValue('--td-screen-sm') || '768');
const mdWidth = parseFloat(getCssVarsValue('--td-screen-md') || '992');
const lgWidth = parseFloat(getCssVarsValue('--td-screen-lg') || '1200');
const xlWidth = parseFloat(getCssVarsValue('--td-screen-xl') || '1400');
const xxlWidth = parseFloat(getCssVarsValue('--td-screen-xxl') || '1880');

let size = 'xs';
if (width >= xxlWidth) {
Expand Down

0 comments on commit cabcbd4

Please sign in to comment.