顶部操作按钮样式调整

This commit is contained in:
ray_wuhao 2023-02-27 14:02:19 +08:00
parent 360ae3c373
commit e105726dde
2 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,9 @@
border: none;
outline: none;
text-align: center;
display: inline-block;
display: inline-flex;
justify-content: center;
align-items: center;
fill: currentColor;
transform: translateZ(0);
opacity: var(--ray-icon-depth);

View File

@ -42,6 +42,9 @@ const SiderBar = defineComponent({
const modelDrawerPlacement = ref(settingStore.drawerPlacement)
const showSettings = ref(false)
const person = getCache('person')
const spaceItemStyle = {
display: 'flex',
}
/**
*
@ -129,6 +132,7 @@ const SiderBar = defineComponent({
updateLocale,
handlePersonSelect,
person,
spaceItemStyle,
}
},
render() {
@ -139,7 +143,7 @@ const SiderBar = defineComponent({
align="center"
justify="space-between"
>
<NSpace align="center">
<NSpace align="center" itemStyle={this.spaceItemStyle}>
{this.leftIconOptions.map((curr) => (
<NTooltip>
{{
@ -156,7 +160,7 @@ const SiderBar = defineComponent({
</NTooltip>
))}
</NSpace>
<NSpace align="center">
<NSpace align="center" itemStyle={this.spaceItemStyle}>
{this.rightTooltipIconOptions.map((curr) => (
<RayTooltipIcon
iconName={curr.name}