mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-12 19:28:05 +00:00
chore: minor improvements on login page
This commit is contained in:
parent
61d2feb12e
commit
bd4b2c6ca1
2 changed files with 6 additions and 13 deletions
|
@ -435,14 +435,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-menu-item .anticon {
|
|
||||||
margin-right: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ant-menu-inline .ant-menu-item {
|
|
||||||
padding: 0 16px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-section {
|
.setting-section {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -478,14 +470,15 @@
|
||||||
<div class="setting-section">
|
<div class="setting-section">
|
||||||
<a-popover :overlay-class-name="themeSwitcher.currentTheme" title='{{ i18n "menu.settings" }}' placement="bottomRight" trigger="click">
|
<a-popover :overlay-class-name="themeSwitcher.currentTheme" title='{{ i18n "menu.settings" }}' placement="bottomRight" trigger="click">
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
<a-space direction="vertical">
|
<a-space direction="vertical" :size="10">
|
||||||
|
<a-theme-switch-login></a-theme-switch-login>
|
||||||
|
<span>{{ i18n "pages.settings.language" }}</span>
|
||||||
<a-select ref="selectLang" :style="{ width: '100%' }" v-model="lang" @change="LanguageManager.setLanguage(lang)" :dropdown-class-name="themeSwitcher.currentTheme">
|
<a-select ref="selectLang" :style="{ width: '100%' }" v-model="lang" @change="LanguageManager.setLanguage(lang)" :dropdown-class-name="themeSwitcher.currentTheme">
|
||||||
<a-select-option :value="l.value" label="English" v-for="l in LanguageManager.supportedLanguages">
|
<a-select-option :value="l.value" label="English" v-for="l in LanguageManager.supportedLanguages">
|
||||||
<span role="img" aria-label="l.name" v-text="l.icon"></span>
|
<span role="img" aria-label="l.name" v-text="l.icon"></span>
|
||||||
<span v-text="l.name"></span>
|
<span v-text="l.name"></span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<a-theme-switch-login></a-theme-switch-login>
|
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
<a-button shape="circle" icon="setting"></a-button>
|
<a-button shape="circle" icon="setting"></a-button>
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
|
|
||||||
{{define "component/themeSwitchTemplateLogin"}}
|
{{define "component/themeSwitchTemplateLogin"}}
|
||||||
<template>
|
<template>
|
||||||
<a-space direction="vertical" :style="{ width: '100%' }">
|
<a-space direction="vertical" :size="10" :style="{ width: '100%' }">
|
||||||
<a-space direction="horizontal">
|
<a-space direction="horizontal" size="small">
|
||||||
<a-switch size="small" :default-checked="themeSwitcher.isDarkTheme" @change="themeSwitcher.toggleTheme()"></a-switch>
|
<a-switch size="small" :default-checked="themeSwitcher.isDarkTheme" @change="themeSwitcher.toggleTheme()"></a-switch>
|
||||||
<span>{{ i18n "menu.dark" }}</span>
|
<span>{{ i18n "menu.dark" }}</span>
|
||||||
</a-space>
|
</a-space>
|
||||||
<a-space v-if="themeSwitcher.isDarkTheme" direction="horizontal">
|
<a-space v-if="themeSwitcher.isDarkTheme" direction="horizontal" size="small">
|
||||||
<a-checkbox :checked="themeSwitcher.isUltra" @click="themeSwitcher.toggleUltra()"></a-checkbox>
|
<a-checkbox :checked="themeSwitcher.isUltra" @click="themeSwitcher.toggleUltra()"></a-checkbox>
|
||||||
<span>{{ i18n "menu.ultraDark" }}</span>
|
<span>{{ i18n "menu.ultraDark" }}</span>
|
||||||
</a-space>
|
</a-space>
|
||||||
|
|
Loading…
Reference in a new issue