Skip to content

Commit d22fa88

Browse files
authored
Merge pull request #588 from components-ai/tweaks
Fix gap theme values, make font family consistent in layers panel
2 parents 0e5c3cf + d6ddbe3 commit d22fa88

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.changeset/eight-suns-search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compai/css-gui': patch
3+
---
4+
5+
Fix inconsistent typefaces

.changeset/strange-wolves-explain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compai/css-gui': patch
3+
---
4+
5+
Send along options to stringify in tuple schema

packages/gui/src/components/html/TreeNode.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
150150
margin: 0,
151151
padding: 0,
152152
fontSize: '14px',
153+
fontFamily: 'monospace',
153154
}}
154155
onClick={() => {
155156
if (isSelected) {
@@ -171,6 +172,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
171172
backgroundColor: isSelected ? '#ff0' : 'background',
172173
color: 'text',
173174
fontSize: '14px',
175+
fontFamily: 'monospace',
174176
fontWeight: isSelected ? 700 : 400,
175177
borderRadius: '6px',
176178
px: 2,
@@ -300,6 +302,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
300302
py: 0,
301303
px: 2,
302304
fontSize: '14px',
305+
fontFamily: 'monospace',
303306
bg: isSelected ? '#ff0' : 'background',
304307
fontWeight: isSelected ? 700 : 400,
305308
borderRadius: '6px',

packages/gui/src/components/schemas/tuple.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ export function tupleSchema<T>({
3737
? [itemSchema.defaultValue]
3838
: labels.map(() => itemSchema.defaultValue)
3939

40-
function stringify(value: T[]) {
40+
function stringify(value: T[], ...args: any[]) {
4141
return (
42-
value?.map((item) => itemSchema.stringify(item)).join(separator) ?? null
42+
value
43+
?.map((item) => itemSchema.stringify(item, ...args))
44+
.join(separator) ?? null
4345
)
4446
}
4547

0 commit comments

Comments
 (0)