Merge pull request #1070 from MCSManager/nya

Style: something style
This commit is contained in:
unitwk 2023-11-19 21:31:09 +08:00 committed by GitHub
commit 6e0be288f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View File

@ -9,7 +9,6 @@ import {
FormOutlined,
DatabaseOutlined,
AppstoreOutlined,
FrownOutlined,
PlayCircleOutlined,
PauseCircleOutlined,
CloseOutlined,
@ -59,6 +58,7 @@ const instancesMoreInfo = computed(() => {
const initNodes = async () => {
await getNodes();
nodes?.value?.sort((a, b) => (a.available === b.available ? 0 : a.available ? -1 : 1));
if (!nodes.value?.length) {
return message.error(t("TXT_CODE_e3d96a26"));
}
@ -294,8 +294,7 @@ onMounted(async () => {
:disabled="!item.available"
@click="handleChangeNode(item)"
>
<DatabaseOutlined v-if="item.available" />
<FrownOutlined v-else />
<DatabaseOutlined />
{{ computeNodeName(item.ip, item.available, item.remarks) }}
</a-menu-item>
<a-menu-divider />
@ -474,10 +473,15 @@ onMounted(async () => {
}
.selected {
border: 3px solid var(--color-blue-6);
transition: all 0.1s;
border: none;
outline: 3px solid var(--color-blue-6);
transition: all 0.3s;
user-select: none;
&:hover {
border: 3px solid var(--color-blue-6);
border: none;
outline: 3px solid var(--color-blue-6);
transition: all 0.3s;
box-shadow: inset 0 0 0 0.5px var(--color-blue-6);
}
}
</style>

View File

@ -444,7 +444,7 @@ onMounted(() => {
</a-radio-group>
</a-space>
<a-space v-if="dialog.mode == 'permission'" direction="vertical" class="w-100">
<a-space v-if="dialog.mode == 'permission'" direction="vertical" class="w-100 select-none">
<a-spin :spinning="permission.loading">
<div class="flex-between permission">
<a-checkbox-group

View File

@ -1,5 +1,5 @@
start npm run start-daemon
start npm run start-panel
npm run start-frontend
start npm run start-frontend