style: Adjusted layout and styling of right sidebar.

- Modified color border variable to a lighter grayish white.
- Adjusted the layout and styling of the right sidebar.
This commit is contained in:
kangfenmao 2024-09-10 13:28:34 +08:00
parent cdacc56fd7
commit d815415f36
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
--color-text: var(--color-text-1); --color-text: var(--color-text-1);
--color-icon: #ffffff99; --color-icon: #ffffff99;
--color-icon-white: #ffffff; --color-icon-white: #ffffff;
--color-border: #000; --color-border: #ffffff28;
--color-border-soft: #ffffff20; --color-border-soft: #ffffff20;
--color-error: #f44336; --color-error: #f44336;
--color-link: #1677ff; --color-link: #1677ff;

View File

@ -69,7 +69,7 @@ const RightSidebar: FC<Props> = ({ activeAssistant, activeTopic, setActiveAssist
}, [position, showTab, tab, toggleShowTopics, topicPosition]) }, [position, showTab, tab, toggleShowTopics, topicPosition])
return ( return (
<Container style={{ ...border, width: topicPosition === 'left' ? '300px' : 'var(--assistants-width)' }}> <Container style={{ ...border }}>
{showTab && ( {showTab && (
<Segmented <Segmented
value={tab} value={tab}
@ -77,7 +77,7 @@ const RightSidebar: FC<Props> = ({ activeAssistant, activeTopic, setActiveAssist
style={{ style={{
borderRadius: 0, borderRadius: 0,
padding: '10px', padding: '10px',
gap: 5, gap: 3,
borderBottom: '0.5px solid var(--color-border)' borderBottom: '0.5px solid var(--color-border)'
}} }}
options={ options={
@ -111,7 +111,7 @@ const RightSidebar: FC<Props> = ({ activeAssistant, activeTopic, setActiveAssist
const Container = styled.div` const Container = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: var(--topic-list-width); width: var(--assistants-width);
height: calc(100vh - var(--navbar-height)); height: calc(100vh - var(--navbar-height));
.collapsed { .collapsed {
width: 0; width: 0;