Skip to content

Commit 38510be

Browse files
committed
Merge remote-tracking branch 'origin/development' into feat/plugin-config-custom-ui
2 parents 511b899 + c7fbf05 commit 38510be

1 file changed

Lines changed: 22 additions & 18 deletions

File tree

  • src/frontend/src/widgets/layouts/tabs/components

src/frontend/src/widgets/layouts/tabs/components/Variants.tsx

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,34 @@ export const ContentVariant: React.FC<ContentVariantProps> = ({
9999
<div
100100
className={cn("flex flex-col h-full w-full", removeParentPadding && "remove-parent-padding")}
101101
>
102-
<div ref={containerRef} className="relative pb-[6px] w-full" style={getWidth(width)}>
103-
{/* Hover Highlight */}
104-
<div
105-
className="absolute h-[26px] transition-all duration-300 ease-out bg-accent/20 rounded-[6px] flex items-center"
106-
style={{
107-
opacity: activeIndex !== null ? 1 : 0,
108-
pointerEvents: "none",
109-
}}
110-
/>
111-
{/* Active Indicator */}
112-
<div
113-
className={cn(
114-
"absolute bottom-0 h-[2px] bg-foreground",
115-
!isInitialRender && "transition-all duration-300 ease-out",
116-
activeTabId && !visibleTabs.includes(activeTabId) && "opacity-0",
117-
)}
118-
style={activeStyle}
119-
/>
102+
<div
103+
ref={containerRef}
104+
className="relative pl-2 pt-2 pb-[6px] w-full"
105+
style={getWidth(width)}
106+
>
120107
{/* Tabs */}
121108
<div
122109
ref={tabsListRef}
123110
className={"relative flex gap-x-[6px] gap-y-[20px] items-center"}
124111
role="tablist"
125112
>
113+
{/* Hover Highlight */}
114+
<div
115+
className="absolute h-[26px] transition-all duration-300 ease-out bg-accent/20 rounded-[6px] flex items-center"
116+
style={{
117+
opacity: activeIndex !== null ? 1 : 0,
118+
pointerEvents: "none",
119+
}}
120+
/>
121+
{/* Active Indicator */}
122+
<div
123+
className={cn(
124+
"absolute bottom-[0px] h-[2px] bg-foreground",
125+
!isInitialRender && "transition-all duration-300 ease-out",
126+
activeTabId && !visibleTabs.includes(activeTabId) && "opacity-0",
127+
)}
128+
style={activeStyle}
129+
/>
126130
{orderedTabWidgets.map((tabWidget, index) => {
127131
if (!React.isValidElement(tabWidget)) return null;
128132
const props = getTabProps(tabWidget);

0 commit comments

Comments
 (0)