mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: Conditionally render message group border based on popover state
This commit is contained in:
parent
d263d2078a
commit
ebe3980bac
@ -277,14 +277,13 @@ const MessageWrapper = styled(Scrollbar)<MessageWrapperProps>`
|
||||
? css`
|
||||
max-height: ${$isInPopover ? '50vh' : '300px'};
|
||||
overflow-y: auto;
|
||||
border: 0.5px solid var(--color-border);
|
||||
border: 0.5px solid ${$isInPopover ? 'transparent' : 'var(--color-border)'};
|
||||
padding: 10px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--color-background);
|
||||
`
|
||||
: css`
|
||||
overflow-y: auto;
|
||||
border: 0.5px solid transparent;
|
||||
border-radius: 6px;
|
||||
`}
|
||||
`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user