Skip to content

Commit 2257912

Browse files
committed
fix: height default value bug
1 parent 299d677 commit 2257912

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

npm/CssToTailwindTranslator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ const propertyMap: Map<string, Record<string, string> | ((val: string) => string
11441144
],
11451145
[
11461146
'height',
1147-
val => (isUnit(val) ? `h-${getUnitMetacharactersVal(val, [CustomSelect.vw]) || `[${val}]`}` : '')
1147+
val => (isUnit(val) ? `h-${(useAllDefaultValues && getRemDefaultVal(val)) || getUnitMetacharactersVal(val, [CustomSelect.vw]) || `[${val}]`}` : '')
11481148
],
11491149
[
11501150
'icon',

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-to-tailwind-translator",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Convert CSS code to Tailwindcss syntax in real time",
55
"scripts": {},
66
"repository": {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-to-tailwind",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
@@ -15,7 +15,7 @@
1515
"@monaco-editor/react": "^4.4.6",
1616
"clipboard": "^2.0.11",
1717
"clsx": "^1.2.1",
18-
"css-to-tailwind-translator": "^1.2.1",
18+
"css-to-tailwind-translator": "^1.2.2",
1919
"next": "13.2.4",
2020
"react": "18.2.0",
2121
"react-dom": "18.2.0",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)