Skip to content

Commit

Permalink
docs: the setting btn's icon is not centered (#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovsu committed Jan 11, 2023
1 parent 5400b29 commit 1457cfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const scopes = [
'packaging',
'release',
'changelog',
'docs',
]

// precomputed scope
Expand Down
8 changes: 5 additions & 3 deletions packages/site/src/components/global/GlobalTheme.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<div class="floatButton">
<IxDropdown placement="top" :offset="[0, 16]">
<span class="ix-dropdown-trigger">
<IxIcon name="setting" />
</span>
<IxIcon name="setting" />
<template #overlay>
<IxMenu v-model:selectedKeys="selectedKeys" :dataSource="dataSource"></IxMenu>
</template>
Expand Down Expand Up @@ -61,6 +59,10 @@ watch(selectedKeys, ([theme]) => {
border-radius: 50%;
box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;
display: flex;
justify-content: center;
align-items: center;
&:hover {
color: #1c6eff;
}
Expand Down

0 comments on commit 1457cfd

Please sign in to comment.