mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(component): adjust renaming style (#7654)
This commit is contained in:
@@ -45,6 +45,7 @@ export const RenameModal = ({
|
||||
onPointerDownOutside: handleRename,
|
||||
sideOffset: -12,
|
||||
onClick: e => e.stopPropagation(),
|
||||
style: { borderRadius: 10, padding: 8 },
|
||||
}}
|
||||
items={
|
||||
<Input
|
||||
@@ -55,7 +56,7 @@ export const RenameModal = ({
|
||||
onEnter={handleRename}
|
||||
onKeyDown={onKeyDown}
|
||||
data-testid="rename-modal-input"
|
||||
style={{ width: 220, height: 34 }}
|
||||
style={{ width: 220, height: 34, borderRadius: 4 }}
|
||||
/>
|
||||
}
|
||||
>
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import { cssVar } from '@toeverything/theme';
|
||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||
import { style } from '@vanilla-extract/css';
|
||||
export const inputWrapper = style({
|
||||
width: '100%',
|
||||
height: 28,
|
||||
lineHeight: '22px',
|
||||
gap: '10px',
|
||||
color: cssVar('textPrimaryColor'),
|
||||
color: cssVarV2('text/primary'),
|
||||
border: '1px solid',
|
||||
backgroundColor: cssVar('white'),
|
||||
backgroundColor: cssVarV2('layer/background/primary'),
|
||||
borderRadius: 8,
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
@@ -44,7 +45,7 @@ export const inputWrapper = style({
|
||||
borderColor: cssVar('borderColor'),
|
||||
},
|
||||
'&.default:is(:focus-within, :focus, :focus-visible)': {
|
||||
borderColor: cssVar('primaryColor'),
|
||||
borderColor: cssVarV2('button/primary'),
|
||||
outline: 'none',
|
||||
boxShadow: '0px 0px 0px 2px rgba(30, 150, 235, 0.30);',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user