!407 style: 统一滚动条外观并将投稿应用窗口改为圆角

Merge pull request !407 from xiyidaiwa/Erotica
This commit is contained in:
2026-07-24 14:13:49 +00:00
committed by Gitee
9 changed files with 96 additions and 13 deletions
-1
View File
@@ -205,7 +205,6 @@ const gridRows = computed(() => {
flex: 1;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
}
:deep(.vue-recycle-scroller__item-view) {
+1 -1
View File
@@ -100,7 +100,7 @@
</div>
<div
class="flex-1 overflow-y-auto overscroll-contain scrollbar-nowidth scrollbar-thumb-slate-200 dark:scrollbar-thumb-slate-700 p-6 space-y-4"
class="flex-1 overflow-y-auto overscroll-contain p-6 space-y-4 mr-4 mb-4"
>
<div
v-if="syncMessage"
+16 -4
View File
@@ -1,9 +1,9 @@
<template>
<div
class="h-screen overflow-y-auto bg-slate-50 dark:bg-slate-950 text-slate-900 dark:text-slate-100"
class="flex h-screen flex-col overflow-hidden rounded-3xl shadow-2xl bg-slate-50 dark:bg-slate-950 text-slate-900 dark:text-slate-100"
>
<div
class="submitter-titlebar sticky top-0 z-30 border-b border-slate-200/70 bg-white px-4 py-3 dark:border-slate-800/70 dark:bg-slate-900"
class="submitter-titlebar shrink-0 z-30 border-b border-slate-200/70 bg-white px-4 py-3 dark:border-slate-800/70 dark:bg-slate-900"
>
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
@@ -34,7 +34,8 @@
</div>
</div>
<div class="p-6 max-w-2xl mx-auto">
<div class="flex-1 overflow-y-auto mr-4 mb-4">
<div class="p-6 max-w-2xl mx-auto">
<div class="space-y-6">
<div>
<label
@@ -746,6 +747,7 @@
</div>
</div>
</Teleport>
</div>
</div>
</template>
@@ -1864,7 +1866,7 @@ const closeWindow = () => {
window.ipcRenderer.send("close-submitter-window");
};
import { onMounted, nextTick } from "vue";
import { onMounted, onUnmounted, nextTick } from "vue";
const getGitInfo = async () => {
try {
@@ -1908,6 +1910,16 @@ const getGitInfo = async () => {
onMounted(async () => {
console.log("[Submitter] Component mounted, loading categories and tags");
// 透明窗口:让 body/html 背景透明,圆角才能透出,否则四角是方角。
// 保存原始值,在 onUnmounted 中恢复,避免副作用泄漏到其它视图。
const prevHtmlBg = document.documentElement.style.backgroundColor;
const prevBodyBg = document.body.style.backgroundColor;
document.documentElement.style.backgroundColor = "transparent";
document.body.style.backgroundColor = "transparent";
onUnmounted(() => {
document.documentElement.style.backgroundColor = prevHtmlBg;
document.body.style.backgroundColor = prevBodyBg;
});
// 先等待分类列表加载完成,避免后续竞态
await Promise.all([loadCategoriesList(), loadTagsList()]);
// 尝试从 git 配置读取 name 和 email,填入 contributor 和 mail
+5 -1
View File
@@ -3,7 +3,11 @@
class="window-titlebar sticky top-0 z-20 flex h-10 shrink-0 items-center justify-between border-b border-slate-200/70 bg-white px-3 text-slate-700 dark:border-slate-800/70 dark:bg-slate-950 dark:text-slate-200"
>
<div class="flex min-w-0 items-center gap-2">
<span class="h-3 w-3 rounded-full bg-[#2b7fff]"></span>
<img
src="../assets/imgs/spark-store.svg"
class="h-5 w-5 flex-shrink-0"
alt="星火应用商店"
/>
<span class="truncate text-sm font-semibold">星火应用商店</span>
</div>
@@ -61,11 +61,13 @@
<label class="block relative">
<span class="sr-only">搜索更新</span>
<i
class="fas fa-search pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"
></i>
<input
:value="searchQuery"
type="search"
placeholder="搜索应用或包名"
class="w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-900 outline-none transition focus:border-brand/60 focus:bg-white dark:border-slate-700 dark:bg-slate-950 dark:text-slate-100 dark:focus:bg-slate-900"
class="w-full rounded-2xl border border-slate-200/70 bg-white/80 py-3 pl-12 pr-20 text-sm text-slate-700 shadow-sm outline-none transition placeholder:text-slate-400 focus:border-brand/50 focus:ring-4 focus:ring-brand/10 dark:border-slate-800/70 dark:bg-slate-900/60 dark:text-slate-200"
@input="handleInput"
/>
<button