Skip to content

Commit

Permalink
style: set Independent Panel sidebar width to a fixed value and defau…
Browse files Browse the repository at this point in the history
…lt collapsed
  • Loading branch information
josStorer committed Apr 5, 2023
1 parent 60afbbd commit ea39d24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/IndependentPanel/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Browser from 'webextension-polyfill'

function App() {
const { t } = useTranslation()
const [collapsed, setCollapsed] = useState(false)
const [collapsed, setCollapsed] = useState(true)
const config = useConfig()
const [sessions, setSessions] = useState([])
const [sessionId, setSessionId] = useState(null)
Expand Down
5 changes: 4 additions & 1 deletion src/pages/IndependentPanel/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,21 @@
.chat-sidebar {
display: flex;
flex-direction: column;
min-width: 250px;
width: 250px;
background-color: var(--theme-color);
transition: width 0.3s;
transition: width 0.3s, min-width 0.3s;
padding: 10px;
}

.chat-sidebar.collapsed {
min-width: 60px;
width: 60px;
}

.chat-sidebar:hover,
.chat-sidebar:not(.collapsed) {
min-width: 250px;
width: 250px;
}

Expand Down

0 comments on commit ea39d24

Please sign in to comment.