mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: remove extra padding on buttons
This commit is contained in:
parent
dd50decea6
commit
9f0d71431f
1 changed files with 8 additions and 2 deletions
|
|
@ -26,6 +26,7 @@
|
|||
}
|
||||
|
||||
$: className = getClassName(noPadding);
|
||||
$: hasSlotContent = !!$$slots.default;
|
||||
</script>
|
||||
|
||||
<button
|
||||
|
|
@ -34,9 +35,14 @@
|
|||
{disabled}
|
||||
aria-label={ariaLabel}
|
||||
on:click={handleClick}
|
||||
><Icon {iconId} {size} />
|
||||
<div class="vault-explorer-icon-button__text"><slot /></div></button
|
||||
>
|
||||
<Icon {iconId} {size} />
|
||||
{#if hasSlotContent}
|
||||
<div class="vault-explorer-icon-button__text">
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
<style>
|
||||
.vault-explorer-icon-button--no-padding {
|
||||
|
|
|
|||
Loading…
Reference in a new issue