Skip to content

Commit ea39d24

Browse files
committed
style: set Independent Panel sidebar width to a fixed value and default collapsed
1 parent 60afbbd commit ea39d24

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/pages/IndependentPanel/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Browser from 'webextension-polyfill'
1818

1919
function App() {
2020
const { t } = useTranslation()
21-
const [collapsed, setCollapsed] = useState(false)
21+
const [collapsed, setCollapsed] = useState(true)
2222
const config = useConfig()
2323
const [sessions, setSessions] = useState([])
2424
const [sessionId, setSessionId] = useState(null)

src/pages/IndependentPanel/styles.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,21 @@
4646
.chat-sidebar {
4747
display: flex;
4848
flex-direction: column;
49+
min-width: 250px;
4950
width: 250px;
5051
background-color: var(--theme-color);
51-
transition: width 0.3s;
52+
transition: width 0.3s, min-width 0.3s;
5253
padding: 10px;
5354
}
5455

5556
.chat-sidebar.collapsed {
57+
min-width: 60px;
5658
width: 60px;
5759
}
5860

5961
.chat-sidebar:hover,
6062
.chat-sidebar:not(.collapsed) {
63+
min-width: 250px;
6164
width: 250px;
6265
}
6366

0 commit comments

Comments
 (0)