mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 15:54:25 +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 {
|
.card-header {
|
||||||
padding-block: 0.2em;
|
padding-block: 0.2em;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
.card-header-title {
|
.card-header-title {
|
||||||
padding-inline: 0.5em;
|
padding-inline: 0.5em;
|
||||||
|
|||||||
@ -25,12 +25,12 @@ export default function RightPanelWidget({ title, buttons, children }: RightPane
|
|||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
class={clsx("card widget", !expanded && "collapsed")}
|
class={clsx("card widget", !expanded && "collapsed")}
|
||||||
>
|
>
|
||||||
<div class="card-header">
|
<div
|
||||||
|
class="card-header"
|
||||||
|
onClick={() => setExpanded(!expanded)}
|
||||||
|
>
|
||||||
<Icon
|
<Icon
|
||||||
icon="bx bx-chevron-down"
|
icon="bx bx-chevron-down"
|
||||||
onClick={() => {
|
|
||||||
setExpanded(!expanded);
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<div class="card-header-title">{title}</div>
|
<div class="card-header-title">{title}</div>
|
||||||
<div class="card-header-buttons">{buttons}</div>
|
<div class="card-header-buttons">{buttons}</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user