mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 07:44:24 +01:00
feat(right_pane): make whole title clickable
This commit is contained in:
parent
7af063e7cd
commit
57081a1bfb
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user