-
-
-
{{ props.user.userName || props.user.loginId }}
-
{{ props.user.cityName || "已登录" }}
+
+
+
+
{{ collapsed ? "N" : "NqiTools" }}
+
+
+
+
+ {{ props.user.userName || props.user.loginId }}
+ {{ props.user.cityName || "已登录" }}
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
-
-
+
+
diff --git a/desktop/src/shell/navigation.ts b/desktop/src/shell/navigation.ts
index 4f30e85..405a03b 100644
--- a/desktop/src/shell/navigation.ts
+++ b/desktop/src/shell/navigation.ts
@@ -1,7 +1,7 @@
import type { Component } from "vue";
import { h } from "vue";
import { NIcon } from "naive-ui";
-import { CloudDownloadOutline, ListOutline } from "@vicons/ionicons5";
+import { CloudDownloadOutline, GridOutline, ListOutline } from "@vicons/ionicons5";
function renderIcon(icon: Component) {
return () => h(NIcon, null, { default: () => h(icon) });
@@ -15,7 +15,7 @@ export const navOptions = [
key: "download",
icon: renderIcon(CloudDownloadOutline),
children: [
- { label: "栅格下载", key: "grid" as const, icon: renderIcon(CloudDownloadOutline) },
+ { label: "栅格下载", key: "grid" as const, icon: renderIcon(GridOutline) },
],
},
{ label: "下载管理", key: "tasks" as const, icon: renderIcon(ListOutline) },
diff --git a/desktop/src/styles.css b/desktop/src/styles.css
index 6a44ea3..11da78f 100644
--- a/desktop/src/styles.css
+++ b/desktop/src/styles.css
@@ -177,17 +177,19 @@ select {
.shell {
height: 100%;
- display: grid;
- grid-template-columns: 220px minmax(0, 1fr);
background: var(--bg);
color: var(--ink);
}
-.sider {
+.sider-body {
+ height: 100%;
display: flex;
flex-direction: column;
- background: var(--sidebar);
- border-right: 1px solid var(--line);
+ min-height: 0;
+}
+
+.sider-body .n-menu {
+ flex: 1;
min-height: 0;
}
@@ -195,6 +197,7 @@ select {
padding: 18px 16px 8px;
font-weight: 650;
font-size: 16px;
+ white-space: nowrap;
}
.sider-user {
@@ -206,6 +209,11 @@ select {
gap: 8px;
}
+.sider-user.compact {
+ flex-direction: column;
+ padding: 8px 0 12px;
+}
+
.sider-user .who {
min-width: 0;
flex: 1;
@@ -227,10 +235,18 @@ select {
.content {
min-width: 0;
min-height: 0;
+ height: 100%;
display: flex;
flex-direction: column;
}
+.content .n-layout-scroll-container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+}
+
.page {
min-height: 0;
flex: 1;
@@ -286,6 +302,8 @@ select {
display: flex;
gap: 8px;
align-items: center;
+ flex-wrap: wrap;
+ justify-content: flex-end;
}
.panel,
@@ -324,6 +342,7 @@ select {
.tabs {
display: flex;
+ align-items: center;
gap: 8px;
padding: 12px 20px 0;
}
@@ -454,7 +473,28 @@ select {
}
.limit-control {
- width: 112px;
+ width: 148px;
+}
+
+.n-input-number .n-input__input-el {
+ text-align: center;
+}
+
+.speed {
+ color: var(--muted);
+ font-size: 13px;
+ white-space: nowrap;
+}
+
+.task-main {
+ display: flex;
+ align-items: flex-start;
+ gap: 10px;
+ min-width: 0;
+}
+
+.task.picked {
+ border-color: var(--accent);
}
.fail-list {