diff --git a/app/assets/css/tailwind.css b/app/assets/css/tailwind.css index f51bcaf..47837c1 100644 --- a/app/assets/css/tailwind.css +++ b/app/assets/css/tailwind.css @@ -116,13 +116,48 @@ @layer base { * { @apply border-border outline-ring/50; + scrollbar-width: thin; + scrollbar-color: color-mix(in oklch, var(--foreground) 28%, transparent) + transparent; } + body { @apply bg-background text-foreground; @apply font-sans; } + button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; } + + /* Chrome / Edge / Safari */ + *::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + *::-webkit-scrollbar-track { + background: transparent; + } + + *::-webkit-scrollbar-thumb { + background: color-mix(in oklch, var(--foreground) 22%, transparent); + border-radius: 999px; + } + + *::-webkit-scrollbar-thumb:hover { + background: color-mix(in oklch, var(--foreground) 38%, transparent); + } + + /* 去掉滚动条两头的箭头按钮 */ + *::-webkit-scrollbar-button { + display: none; + width: 0; + height: 0; + } + + *::-webkit-scrollbar-corner { + background: transparent; + } } diff --git a/app/components/home/OcsConfigCard.vue b/app/components/home/OcsConfigCard.vue index 45f67f0..501a341 100644 --- a/app/components/home/OcsConfigCard.vue +++ b/app/components/home/OcsConfigCard.vue @@ -68,8 +68,9 @@ const copyConfig = async () => {
{{ configText }}
+ class="max-h-120 overflow-auto rounded-2xl bg-muted p-4 text-xs leading-5 text-muted-foreground" + >{{ configText }} +
diff --git a/app/components/layout/AppHeader.vue b/app/components/layout/AppHeader.vue index 7b00826..abef252 100644 --- a/app/components/layout/AppHeader.vue +++ b/app/components/layout/AppHeader.vue @@ -1,6 +1,11 @@