mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 16:02:19 +00:00
fix(app): toggle file tree and review panel better ux (#12481)
This commit is contained in:
parent
4abf8049c9
commit
b5b93aea42
5 changed files with 180 additions and 161 deletions
|
|
@ -544,11 +544,7 @@ export function SessionHeader() {
|
|||
<Button
|
||||
variant="ghost"
|
||||
class="group/file-tree-toggle size-6 p-0"
|
||||
onClick={() => {
|
||||
const opening = !layout.fileTree.opened()
|
||||
if (opening && !view().reviewPanel.opened()) view().reviewPanel.open()
|
||||
layout.fileTree.toggle()
|
||||
}}
|
||||
onClick={() => layout.fileTree.toggle()}
|
||||
aria-label={language.t("command.fileTree.toggle")}
|
||||
aria-expanded={layout.fileTree.opened()}
|
||||
aria-controls="file-tree-panel"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue