fix(web): standardize padding across various pages

This commit is contained in:
ShellWen
2026-02-23 05:18:05 +08:00
committed by 晨苒
parent 8aabcf486a
commit cad684355e
8 changed files with 19 additions and 22 deletions
@@ -40,10 +40,7 @@
{{ currentPageTitle }}
</h1>
<ScrollArea class="absolute! inset-0">
<router-view
v-slot="{ Component }"
class="p-4"
>
<router-view v-slot="{ Component }">
<KeepAlive>
<component :is="Component" />
</KeepAlive>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<section class="p-6 max-w-7xl mx-auto">
<section class="p-4 max-w-7xl mx-auto">
<!-- Header -->
<div class="flex items-center gap-4 mb-8">
<div
+12 -12
View File
@@ -1,5 +1,5 @@
<template>
<section class="p-6 max-w-7xl mx-auto">
<section class="p-4 max-w-7xl mx-auto">
<!-- Header: search + create -->
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold tracking-tight">
@@ -93,18 +93,18 @@ const hasPendingBots = computed(() =>
let pollTimer: ReturnType<typeof setInterval> | null = null
watch(hasPendingBots, (pending) => {
if (pending) {
if (pollTimer == null) {
pollTimer = setInterval(() => {
queryCache.invalidateQueries({ key: getBotsQueryKey() })
}, 2000)
if (pending) {
if (pollTimer == null) {
pollTimer = setInterval(() => {
queryCache.invalidateQueries({ key: getBotsQueryKey() })
}, 2000)
}
return
}
if (pollTimer != null) {
clearInterval(pollTimer)
pollTimer = null
}
return
}
if (pollTimer != null) {
clearInterval(pollTimer)
pollTimer = null
}
}, { immediate: true })
onUnmounted(() => {
@@ -1,6 +1,6 @@
<template>
<div class="w-56 shrink-0 border-r flex flex-col h-full">
<div class="p-3 border-b">
<div class="p-4 border-b">
<p class="text-sm font-semibold text-muted-foreground uppercase tracking-wide">
{{ $t('sidebar.bots') }}
</p>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<section>
<section class="p-4">
<h1>{{ $t('home.title') }}</h1>
</section>
</template>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<main class="w-screen h-screen flex *:m-auto bg-background relative">
<main class="w-screen h-screen flex *:m-auto bg-background relative p-4">
<header class="absolute top-6 right-6 flex items-center gap-2">
<Select
:model-value="language"
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<section>
<section class="p-4">
<AddPlatform v-model:open="open" />
<menu class="grid grid-cols-4 gap-4 [&_li>*]:h-full">
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<section class="h-full max-w-7xl mx-auto p-6">
<section class="h-full max-w-7xl mx-auto p-4">
<div class="max-w-3xl mx-auto space-y-8">
<!-- Avatar & name -->
<div class="flex items-center gap-4">