Skip to content

Commit

Permalink
fix(projects): fix button style
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 11, 2023
1 parent 32a2d98 commit 93f1806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/custom/button-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ interface Props {
}
const props = withDefaults(defineProps<Props>(), {
class: 'h-36px text-icon',
class: '',
icon: '',
tooltipContent: '',
tooltipPlacement: 'bottom',
getPopupContainer: () => document.body
triggerParent: false
});
const cls = computed(() => props.class);
Expand All @@ -51,15 +51,15 @@ function getPopupContainer(triggerNode: HTMLElement) {
:get-popup-container="getPopupContainer"
:title="tooltipContent"
>
<AButton type="text" :class="cls">
<AButton type="text" class="h-36px text-icon" :class="cls">
<div class="flex-center gap-8px">
<slot>
<SvgIcon :icon="icon" />
</slot>
</div>
</AButton>
</ATooltip>
<AButton v-else type="text" :class="cls">
<AButton v-else type="text" class="h-36px text-icon" :class="cls">
<div class="flex-center gap-8px">
<slot>
<SvgIcon :icon="icon" />
Expand Down
1 change: 1 addition & 0 deletions src/layouts/modules/global-menu/base-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function handleClickMenu(menuInfo: MenuInfo) {
:selected-keys="selectedKeys"
:open-keys="openKeys"
:inline-collapsed="inlineCollapsed"
:inline-indent="18"
class="wh-full border-0! transition-300"
:class="{ 'bg-container!': !darkTheme, 'horizontal-menu': isHorizontal }"
@click="handleClickMenu"
Expand Down

0 comments on commit 93f1806

Please sign in to comment.