mirror of
https://github.com/zadam/trilium.git
synced 2026-02-02 04:29:17 +01:00
feat(mobile/tab_switcher): display margins only for text
This commit is contained in:
@@ -22,7 +22,10 @@
|
||||
height: 180px;
|
||||
overflow: hidden;
|
||||
font-size: 0.5em;
|
||||
padding: 1em;
|
||||
|
||||
&.type-text {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
p { margin-bottom: 0.2em;}
|
||||
h2 { font-size: 1.20em; }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import "./TabSwitcher.css";
|
||||
|
||||
import clsx from "clsx";
|
||||
import { createPortal } from "preact/compat";
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
|
||||
@@ -62,7 +63,7 @@ function Tab({ noteContext }: {
|
||||
return (
|
||||
<div class="tab-card">
|
||||
<header>{noteContext.note?.title}</header>
|
||||
<div className="tab-preview">
|
||||
<div className={clsx("tab-preview", `type-${note?.type ?? "empty"}`)}>
|
||||
{note && <NoteContent
|
||||
note={note}
|
||||
highlightedTokens={undefined}
|
||||
|
||||
Reference in New Issue
Block a user