Skip to content

Commit 5821ead

Browse files
author
mrmrs
committed
Adds some styles to controls and header labels
1 parent ff2f1dc commit 5821ead

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

packages/gui/src/components/Editor/Controls.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,9 @@ const FieldsetControl = ({ field }: FieldsetControlProps) => {
343343
>
344344
<h3
345345
sx={{
346-
fontSize: 2,
346+
fontSize: 1,
347347
lineHeight: 1,
348+
mb: 0,
348349
}}
349350
>
350351
{removeInternalCSSClassSyntax(label)}

packages/gui/src/components/schemas/box-side.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { compact, isNil, mapValues } from 'lodash-es'
22
import { getInputProps } from '../../lib/util'
33
import { DataTypeSchema, RegenOptions } from './types'
44
import * as Toggle from '@radix-ui/react-toggle'
5-
import { Link } from 'react-feather'
5+
import { Maximize, Minimize } from 'react-feather'
66
import { SchemaInput } from '../inputs/SchemaInput'
77

88
interface CreateBoxSideSchema<T> {
@@ -73,7 +73,7 @@ export function boxSideSchema<T>({
7373
const linked = isLinked(props.value)
7474
const linkToggle = (
7575
<Toggle.Root
76-
title="Link inputs"
76+
title="Show all directions (longhand)"
7777
sx={{
7878
p: 0,
7979
background: 'none',
@@ -98,13 +98,17 @@ export function boxSideSchema<T>({
9898
}
9999
}}
100100
>
101-
<Link size={14} />
101+
{linked ? (
102+
<Maximize size={16} />
103+
) : (
104+
<Minimize size={16} />
105+
)}
102106
</Toggle.Root>
103107
)
104108
return (
105109
<div>
106110
{linked ? (
107-
<div sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
111+
<div sx={{ display: 'flex', alignItems: 'center', gap: 1, mt: 1, }}>
108112
{linkToggle}
109113
<SchemaInput
110114
schema={itemSchema}
@@ -117,6 +121,7 @@ export function boxSideSchema<T>({
117121
sx={{
118122
display: 'grid',
119123
justifyItems: 'center',
124+
alignItems: 'center',
120125
gridTemplateRows: '1fr max-content 1fr',
121126
gridTemplateAreas: `
122127
"top top top"

0 commit comments

Comments
 (0)