feat(mobile/tab_switcher): clip note title

This commit is contained in:
Elian Doran
2026-01-31 17:04:19 +02:00
parent 13aebc060e
commit 05fa1ef2fb
2 changed files with 13 additions and 1 deletions

View File

@@ -12,10 +12,20 @@
.tab-card {
background: var(--card-background-color);
border-radius: 1em;
min-width: 0;
header {
padding: 0.5em 1em;
border-bottom: 1px solid var(--main-border-color);
display: flex;
overflow: hidden;
.title {
overflow: hidden;
text-overflow: ellipsis;
text-wrap: nowrap;
font-size: 0.9em;
}
}
.tab-preview {

View File

@@ -62,7 +62,9 @@ function Tab({ noteContext }: {
return (
<div class="tab-card">
<header>{noteContext.note?.title}</header>
<header>
<span className="title">{noteContext.note?.title}</span>
</header>
<div className={clsx("tab-preview", `type-${note?.type ?? "empty"}`)}>
{note && <NoteContent
note={note}