mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 21:04:24 +01:00
fix(layout/inline-title): still visible in other note types
This commit is contained in:
parent
f686d9ecd0
commit
6fa97c845a
@ -1,10 +1,17 @@
|
|||||||
.component.inline-title-row {
|
.component.inline-title-row {
|
||||||
contain: none;
|
contain: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inline-title-row {
|
||||||
padding-bottom: 2em;
|
padding-bottom: 2em;
|
||||||
padding-inline-start: 24px;
|
padding-inline-start: 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
&.hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.note-icon-widget {
|
.note-icon-widget {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import "./InlineTitle.css";
|
import "./InlineTitle.css";
|
||||||
|
|
||||||
|
import clsx from "clsx";
|
||||||
import { useEffect, useRef, useState } from "preact/hooks";
|
import { useEffect, useRef, useState } from "preact/hooks";
|
||||||
|
|
||||||
import FNote from "../../entities/fnote";
|
import FNote from "../../entities/fnote";
|
||||||
@ -40,7 +41,7 @@ export default function InlineTitle() {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
className="inline-title-row"
|
className={clsx("inline-title-row", !shown && "hidden")}
|
||||||
>
|
>
|
||||||
<NoteIcon />
|
<NoteIcon />
|
||||||
<NoteTitleWidget />
|
<NoteTitleWidget />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user