mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
chore: Improve button component styles (#1996)
This commit is contained in:
committed by
GitHub
parent
dbb41c12a2
commit
7a890e543a
@@ -12,8 +12,8 @@
|
||||
@click="handleClick"
|
||||
>
|
||||
<spinner v-if="isLoading" size="small" />
|
||||
<i v-if="icon" :class="icon"></i>
|
||||
<span v-if="$slots.default"><slot></slot></span>
|
||||
<i v-else-if="icon" class="icon" :class="icon"></i>
|
||||
<span v-if="$slots.default" class="content"><slot></slot></span>
|
||||
</button>
|
||||
</template>
|
||||
<script>
|
||||
@@ -59,3 +59,15 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.spinner {
|
||||
padding: 0 var(--space-small);
|
||||
}
|
||||
.icon + .content {
|
||||
padding-left: var(--space-small);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user