🐛 fix(sidebar-drawer): Fix drawer positioning and title style (#11655)

- Add explicit width and position constraints to drawer root style
- Set title font weight to 600 for better readability
- Add debug button for all agents drawer toggle (temporary)

Resolves LOBE-3356
This commit is contained in:
Innei
2026-01-20 22:39:24 +08:00
committed by GitHub
parent d8121d3322
commit cf5320e27f

View File

@@ -23,6 +23,7 @@ interface SideBarDrawerProps {
const SideBarDrawer = memo<SideBarDrawerProps>(
({ subHeader, open, onClose, children, title, action }) => {
const size = 280;
return (
<Drawer
closable={false}
@@ -33,9 +34,13 @@ const SideBarDrawer = memo<SideBarDrawerProps>(
open={open}
placement="left"
rootStyle={{
bottom: 0,
overflow: 'hidden',
position: 'absolute',
top: 0,
width: `${size}px`,
}}
size={280}
size={size}
styles={{
body: {
background: cssVar.colorBgLayout,
@@ -58,7 +63,12 @@ const SideBarDrawer = memo<SideBarDrawerProps>(
<SideBarHeaderLayout
left={
typeof title === 'string' ? (
<Text ellipsis fontSize={14} style={{ paddingLeft: 4 }} weight={400}>
<Text
ellipsis
fontSize={14}
style={{ fontWeight: 600, paddingLeft: 8 }}
weight={400}
>
{title}
</Text>
) : (