Skip to content

Commit

Permalink
feat(tasty): support for dvh * 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi committed Sep 8, 2022
1 parent 03a0795 commit fb29978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasty/utils/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const CUSTOM_UNITS = {
dvh: function dvh(num) {
return IS_DVH_SUPPORTED
? `${num}dvh`
: `calc(var(--cube-dynamic-viewport-height) / 100 * ${num})`;
: `calc(var(--cube-dynamic-viewport-height, 100dvh) / 100 * ${num})`;
},
// span unit for GridProvider
sp: function spanWidth(num) {
Expand Down

0 comments on commit fb29978

Please sign in to comment.