Skip to content

Commit 5a810fd

Browse files
committed
tweak pixel equivalent comment spacing (#200)
1 parent 14f0fe9 commit 5a810fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tailwindcss-language-service/src/completionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ function stringifyDecls(
952952
const px = showPixelEquivalents
953953
? remToPx(value, rootFontSize)
954954
: undefined
955-
return `${prop}: ${value}${px ? ` /*${px}*/` : ''};`
955+
return `${prop}: ${value}${px ? `/* ${px} */` : ''};`
956956
})
957957
.join(' ')
958958
)

packages/tailwindcss-language-service/src/util/stringify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function stringifyCss(
6161
const propStr = ensureArray(obj[curr])
6262
.map((val) => {
6363
const px = showPixelEquivalents ? remToPx(val, rootFontSize) : undefined
64-
return `${indentStr + indent}${curr}: ${val}${px ? ` /*${px}*/` : ''};`
64+
return `${indentStr + indent}${curr}: ${val}${px ? `/* ${px} */` : ''};`
6565
})
6666
.join('\n')
6767
return `${acc}${i === 0 ? '' : '\n'}${propStr}`

0 commit comments

Comments
 (0)