Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: improve tab ui

Abdullah Atta5a276a43a44e
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx
index 586a774d5..5c522e17f 100644
--- a/apps/web/src/components/editor/action-bar.tsx
+++ b/apps/web/src/components/editor/action-bar.tsx
@@ -275,9 +275,7 @@ function TabStrip() {
<Flex
sx={{
flex: 1,
- my: "2.5px",
- gap: 1,
- height: 32
+ height: "100%"
}}
onDoubleClick={async (e) => {
e.stopPropagation();
@@ -459,21 +457,19 @@ function Tab(props: TabProps) {
className="tab"
data-test-id={`tab-${id}`}
sx={{
- borderRadius: "default",
+ height: "100%",
cursor: "pointer",
px: 2,
- py: "7px",
+ ":first-of-type": {
+ borderLeft: "1px solid var(--border)"
+ },
+ borderRight: "1px solid var(--border)",
transform: CSS.Transform.toString(transform),
transition,
visibility: active?.id === id ? "hidden" : "visible",
- bg: isActive ? "background-selected" : "background-secondary",
- // borderTopLeftRadius: "default",
- // borderTopRightRadius: "default",
- // borderBottom: isActive ? "none" : "1px solid var(--border)",
- border: "1px solid",
- borderColor: isActive ? "border-selected" : "transparent",
+ bg: isActive ? "background-selected" : "transparent",
justifyContent: "space-between",
alignItems: "center",
flexShrink: 0,