From 762554b39d225d028cd75ad720c543e478ee74d3 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Fri, 20 Nov 2026 10:34:43 +0000 Subject: [PATCH] web: center the disconnected/connecting state in the channel tree Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.css | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/web/src/App.css b/web/src/App.css index 484dcb2..151aae3 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -2042,6 +2042,17 @@ font-style: italic; } +/* Disconnected/connecting: centered in the otherwise empty tree panel. */ +.ts-tree-panel > .ts-tree-empty:only-child { + box-sizing: border-box; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + text-align: center; +} + .ts-tree-empty > button, .ts-tree-empty > a { display: block; @@ -2050,6 +2061,7 @@ } .ts-tree-empty > .ts-mobile-connect-btn { + flex: none; min-height: 40px; padding: 0 1.5rem; cursor: pointer; @@ -5456,11 +5468,6 @@ input.ts-identities-uid { /* Disconnected: the header already says so, keep the panel calm and centered. */ .ts-app.ts-mobile .ts-tree-panel > .ts-tree-empty:only-child { - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; font-style: normal; font-size: 16px; color: var(--text-muted);