fix: icons looking squished;

fix: extra view selector button [leftover].
This commit is contained in:
Darshan
2025-08-01 13:23:46 +05:30
parent 155aaa4204
commit abb7672cb1
3 changed files with 16 additions and 1 deletions
@@ -126,6 +126,7 @@
<Button
secondary
icon={onlyIcon}
class={onlyIcon ? 'width-fix' : undefined}
on:click={(event) => {
toggle(event);
trackEvent(Click.FilterApplyClick, { source: analyticsSource });
@@ -250,3 +251,10 @@
</svelte:fragment>
</Modal>
</div>
<style>
:global(.width-fix) {
width: 32px;
height: 32px;
}
</style>
+8
View File
@@ -25,6 +25,7 @@
size="s"
icon={onlyIcon}
variant="secondary"
class={onlyIcon ? 'width-fix' : undefined}
disabled={!$columns.length && showAnyway}
badge={onlyIcon ? undefined : selectedColumnsNumber.toString()}
on:click={toggle}>
@@ -37,3 +38,10 @@
{#if !hideView}
<ViewToggle bind:view />
{/if}
<style>
:global(.width-fix) {
width: 32px;
height: 32px;
}
</style>
@@ -122,7 +122,6 @@
<!-- </Button>-->
</Layout.Stack>
<Layout.Stack direction="row" alignItems="center" justifyContent="flex-end">
<ViewSelector view={data.view} columns={tableColumns} hideView isCustomTable />
<Button
secondary
event={Click.DatabaseImportCsv}