tweak(ui): form element edit mode styling

This commit is contained in:
psychedelicious
2025-02-11 19:51:58 +11:00
parent 0a2925f02b
commit 9adbe31fec
2 changed files with 14 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ const sx: SystemStyleObject = {
h: 8,
minH: 8,
maxH: 8,
borderTopRadius: 'inherit',
borderTopRadius: 'base',
borderColor: 'base.800',
alignItems: 'center',
cursor: 'grab',

View File

@@ -15,15 +15,15 @@ const wrapperSx: SystemStyleObject = {
'&[data-element-type="divider"]&[data-layout="row"]': {
flex: '0 1 0',
},
borderRadius: 'base',
};
const innerSx: SystemStyleObject = {
position: 'relative',
flexDir: 'column',
boxShadow: '0 0 0 1px var(--invoke-colors-base-750)',
borderRadius: 'base',
alignItems: 'center',
justifyContent: 'flex-start',
borderRadius: 'base',
w: 'full',
h: 'full',
'&[data-is-dragging="true"]': {
@@ -64,7 +64,17 @@ export const FormElementEditModeWrapper = memo(({ element, children }: PropsWith
data-layout={containerCtx?.layout}
>
<FormElementEditModeHeader ref={dragHandleRef} element={element} />
<Flex w="full" h="full" p={4} gap={4}>
<Flex
w="full"
h="full"
p={4}
gap={4}
borderWidth={1}
borderColor="base.800"
borderRadius="base"
borderTopRadius="unset"
borderTop="unset"
>
{children}
</Flex>
</Flex>