From 5a276a43a44efe0ef5b47cece04f86d8dcf8652b Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 30 Dec 2024 10:12:02 +0500 Subject: [PATCH] web: improve tab ui --- apps/web/src/components/editor/action-bar.tsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) 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() { { 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,