mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
web: friendlier first screen for people without a server
- Connect dialog no longer prefills "localhost" (always rejected on the public gateway); empty field with an example placeholder instead. - Empty channel tree on desktop gets a Connect button and, outside the demo, a "No server? Try the demo" link. - While a connection is being set up the tree shows a spinner, "Connecting to <host>…" and a Cancel button instead of "Not connected". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
4afab66d6b
commit
e96eb62d90
8 files changed
+75
-2
No files matched your search
@@ -2042,6 +2042,38 @@
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.ts-tree-empty > button,
|
||||
.ts-tree-empty > a {
|
||||
display: block;
|
||||
margin-top: 0.75rem;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.ts-tree-empty > .ts-mobile-connect-btn {
|
||||
min-height: 40px;
|
||||
padding: 0 1.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ts-tree-empty-demo {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.ts-spinner {
|
||||
display: inline-block;
|
||||
width: 0.9em;
|
||||
height: 0.9em;
|
||||
vertical-align: -0.1em;
|
||||
border: 2px solid var(--text-muted);
|
||||
border-top-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: ts-spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes ts-spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.ts-tree-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
@@ -5426,6 +5458,7 @@ input.ts-identities-uid {
|
||||
.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;
|
||||
|
||||
Reference in new issue
Block a user