Skip to content

Commit

Permalink
fix: some style enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 2, 2021
1 parent 99d672f commit 277ee7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PageTabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@
}

.logseq-tab-title {
@apply overflow-ellipsis max-w-80 px-1 overflow-hidden whitespace-nowrap inline transition-all duration-100 ease-in-out;
@apply overflow-ellipsis max-w-80 px-0.5 overflow-hidden whitespace-nowrap inline transition-all duration-100 ease-in-out;
}

.logseq-tab[data-active="false"] .logseq-tab-title {
@apply max-w-40;
}

.logseq-tab[data-pinned="true"] .logseq-tab-title {
@apply max-w-10 overflow-ellipsis;
}

.logseq-tab[data-active="false"] button:hover {
visibility: hidden;
}
Expand Down
3 changes: 3 additions & 0 deletions src/PageTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ const Tabs = React.forwardRef<HTMLElement, TabsProps>(
onDragStart={onDragStart}
className="logseq-tab"
>
<div className="text-xs rounded border mr-1 px-1 inline light:bg-white dark:bg-dark">
{isBlock(tab) ? "B" : "P"}
</div>
<span className="logseq-tab-title">
{tab.originalName ?? tab.name}{" "}
{isBlock(tab) &&
Expand Down

0 comments on commit 277ee7c

Please sign in to comment.