Skip to content

Commit

Permalink
web: improve tab ui
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Dec 30, 2024
1 parent a364ae2 commit 5a276a4
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions apps/web/src/components/editor/action-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ function TabStrip() {
<Flex
sx={{
flex: 1,
my: "2.5px",
gap: 1,
height: 32
height: "100%"
}}
onDoubleClick={async (e) => {
e.stopPropagation();
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5a276a4

Please sign in to comment.