mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 23:12:38 +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: 1;
|
||||
padding: 16px 16px;
|
||||
overflow-y: scroll;
|
||||
`
|
||||
|
||||
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 }) => {
|
||||
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}
|
||||
</div>
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user