fix(layout/inline-title): still visible in other note types

This commit is contained in:
Elian Doran 2025-12-13 11:37:56 +02:00
parent f686d9ecd0
commit 6fa97c845a
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

@ -1,10 +1,17 @@
.component.inline-title-row {
contain: none;
}
.inline-title-row {
padding-bottom: 2em;
padding-inline-start: 24px;
display: flex;
align-items: center;
&.hidden {
display: none !important;
}
.note-icon-widget {
padding: 0;
}

View File

@ -1,5 +1,6 @@
import "./InlineTitle.css";
import clsx from "clsx";
import { useEffect, useRef, useState } from "preact/hooks";
import FNote from "../../entities/fnote";
@ -40,7 +41,7 @@ export default function InlineTitle() {
return (
<div
ref={containerRef}
className="inline-title-row"
className={clsx("inline-title-row", !shown && "hidden")}
>
<NoteIcon />
<NoteTitleWidget />