diff --git a/src/PageTabs.css b/src/PageTabs.css index 69f6b36..fc61e9a 100644 --- a/src/PageTabs.css +++ b/src/PageTabs.css @@ -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; } diff --git a/src/PageTabs.tsx b/src/PageTabs.tsx index b6fb8bd..9642cb3 100644 --- a/src/PageTabs.tsx +++ b/src/PageTabs.tsx @@ -115,6 +115,9 @@ const Tabs = React.forwardRef( onDragStart={onDragStart} className="logseq-tab" > +
+ {isBlock(tab) ? "B" : "P"} +
{tab.originalName ?? tab.name}{" "} {isBlock(tab) &&