Skip to content

Commit

Permalink
fix(docs): fix the issue of the theme switch button not being centered (
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 authored Apr 8, 2024
1 parent e1bddf9 commit fc60047
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/sites/src/views/layout/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
</tiny-tooltip>
</div>
<!-- 切換主题样式 -->
<tiny-dropdown v-if="!templateModeState.isSaas" class="theme-change-button" trigger="click">
<tiny-dropdown v-if="!templateModeState.isSaas" class="theme-change-button" trigger="click" :show-icon="false">
<tiny-tooltip :content="i18nByKey('changeTheme')" placement="left">
<span>
<img :src="themeSvg" :alt="i18nByKey('changeTheme')" />
</span>
<img :src="themeSvg" :alt="i18nByKey('changeTheme')" />
</tiny-tooltip>
<template #dropdown>
<tiny-dropdown-menu :options="themeData">
Expand Down Expand Up @@ -244,6 +242,7 @@ export default defineComponent({
border-radius: 100%;
background-color: transparent;
img {
margin-right: calc(-1 * var(--ti-dropdown-trigger-title-margin-right));
display: block;
width: 26px;
height: 26px;
Expand Down

0 comments on commit fc60047

Please sign in to comment.