mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +08:00
style(AgentSettings): remove overflow-y scroll and adjust overflow settings
Update overflow behavior in settings components to use auto instead of scroll and add right padding to prevent content clipping
This commit is contained in:
parent
4484f39525
commit
381397ed31
@ -135,7 +135,6 @@ const Settings = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 16px 16px;
|
padding: 16px 16px;
|
||||||
overflow-y: scroll;
|
|
||||||
`
|
`
|
||||||
|
|
||||||
const StyledModal = styled(Modal)`
|
const StyledModal = styled(Modal)`
|
||||||
|
|||||||
@ -67,7 +67,7 @@ export const SettingsItem: React.FC<SettingsItemProps> = ({
|
|||||||
|
|
||||||
export const SettingsContainer: React.FC<React.ComponentPropsWithRef<'div'>> = ({ children, className, ...props }) => {
|
export const SettingsContainer: React.FC<React.ComponentPropsWithRef<'div'>> = ({ children, className, ...props }) => {
|
||||||
return (
|
return (
|
||||||
<div className={cn('flex flex-1 flex-col overflow-hidden', className)} {...props}>
|
<div className={cn('flex flex-1 flex-col overflow-auto pr-2', className)} {...props}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user