25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(ui): prevent production watermark overlap in short panes
zipge1af334559c2
diff --git a/apps/desktop/src/components/common/ProductionWatermark.vue b/apps/desktop/src/components/common/ProductionWatermark.vueindex 7a7226df7c..81850eb72b 100644--- a/apps/desktop/src/components/common/ProductionWatermark.vue+++ b/apps/desktop/src/components/common/ProductionWatermark.vue@@ -7,28 +7,74 @@ const watermarkText = computed(() => (locale.value.startsWith("zh") ? "生产环</script><template>- <div class="production-watermark pointer-events-none absolute inset-0 z-10 grid select-none" aria-hidden="true">- <span v-for="index in 4" :key="index" class="production-watermark__label whitespace-nowrap font-mono text-6xl font-extrabold text-red-700/[0.12] dark:text-red-200/[0.1]">{{ watermarkText }}</span>+ <div class="production-watermark pointer-events-none absolute inset-0 z-10 select-none" aria-hidden="true">+ <div class="production-watermark__grid">+ <span v-for="index in 4" :key="index" class="production-watermark__label whitespace-nowrap font-mono font-extrabold text-red-700/[0.12] dark:text-red-200/[0.1]">{{ watermarkText }}</span>+ </div></div></template><style scoped>.production-watermark {+ container-type: size;+ overflow: hidden;+}++.production-watermark__grid {+ position: absolute;+ inset: 0;+ display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));grid-template-rows: repeat(2, minmax(0, 1fr));- gap: 3rem;+ gap: clamp(1rem, 4cqh, 3rem);overflow: hidden;- padding: 3rem 2.5rem;+ padding: clamp(1rem, 6cqh, 3rem) clamp(1rem, 4cqw, 2.5rem);}.production-watermark__label {align-self: center;justify-self: center;+ font-size: clamp(2rem, min(6cqh, 5cqw), 3.75rem);+ line-height: 1;transform: rotate(-22deg);}+/* A short result pane cannot fit two rotated watermark rows safely. Use one+ row with fewer labels so the watermark stays legible without colliding. */+@container (max-height: 440px) {+ .production-watermark__grid {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ grid-template-rows: 1fr;+ gap: 1rem;+ padding: 1rem 1.5rem;+ }++ .production-watermark__label {+ font-size: clamp(1.5rem, 10cqh, 2.75rem);+ }++ .production-watermark__label:nth-child(n + 3) {+ display: none;+ }+}++@container (max-height: 280px) {+ .production-watermark__grid {+ grid-template-columns: 1fr;+ padding: 0.5rem 1rem;+ }++ .production-watermark__label {+ font-size: clamp(1.25rem, 12cqh, 2rem);+ }++ .production-watermark__label:nth-child(n + 2) {+ display: none;+ }+}+@media (max-width: 700px) {- .production-watermark {+ .production-watermark__grid {grid-template-columns: 1fr;gap: 1.5rem;padding-inline: 1rem;