From c2bd1782412b27a363d3b17a51751cdcf029873b Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin Date: Mon, 18 Mar 2024 19:54:55 +0300 Subject: [PATCH] fix(kit): `TasbWithMore` fix redundant left margin for single element --- projects/kit/components/tabs/tab/tab.style.less | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/kit/components/tabs/tab/tab.style.less b/projects/kit/components/tabs/tab/tab.style.less index 9cef051d44c2b..b9ac3f39685f3 100644 --- a/projects/kit/components/tabs/tab/tab.style.less +++ b/projects/kit/components/tabs/tab/tab.style.less @@ -4,13 +4,14 @@ box-shadow: inset 0 -2px var(--tui-base-03); } -:host-context(tui-tabs >):first-child, -:host-context([tuiTabs] >):first-child, -:host-context(tui-tabs > :first-child), -:host-context([tuiTabs] > :first-child) { +:host-context(tui-tabs > :not(.t-overflown) >):first-child { margin-left: 0; } +:host-context(tui-tabs > [tuiTab] ~ :not(.t-overflown) >):first-child { + margin-left: var(--tui-tab-margin, 1.5rem); +} + :host { .transition(~'color, box-shadow, opacity, background'); .clearbtn();