feat(mobile/tab_switcher): display margins only for text

This commit is contained in:
Elian Doran
2026-01-31 17:01:22 +02:00
parent 1aae4098d6
commit 13aebc060e
2 changed files with 6 additions and 2 deletions

View File

@@ -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; }

View File

@@ -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}