feat(right_pane): make whole title clickable

This commit is contained in:
Elian Doran 2025-12-18 16:16:52 +02:00
parent 7af063e7cd
commit 57081a1bfb
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -10,6 +10,7 @@ body.experimental-feature-new-layout #right-pane {
.card-header {
padding-block: 0.2em;
cursor: pointer;
.card-header-title {
padding-inline: 0.5em;

View File

@ -25,12 +25,12 @@ export default function RightPanelWidget({ title, buttons, children }: RightPane
ref={containerRef}
class={clsx("card widget", !expanded && "collapsed")}
>
<div class="card-header">
<div
class="card-header"
onClick={() => setExpanded(!expanded)}
>
<Icon
icon="bx bx-chevron-down"
onClick={() => {
setExpanded(!expanded);
}}
/>
<div class="card-header-title">{title}</div>
<div class="card-header-buttons">{buttons}</div>