From cd5f8e39c428eca1749d3d2430fdc00b0e12d101 Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 16 Feb 2026 22:43:22 -0800 Subject: [PATCH] more minor webpush UI adjustments --- public/index.css | 6 ++---- service/server/handlers_fragment.go | 3 +-- service/server/handlers_subscriptions.go | 6 +++++- service/server/templates/app-list.html | 1 - 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/index.css b/public/index.css index fec1cc3..fca4151 100644 --- a/public/index.css +++ b/public/index.css @@ -167,9 +167,7 @@ details[open] > .card-header::before { border: 0.0625rem solid var(--border-color); font-size: 0.875rem; font-weight: 400; - white-space: normal; - word-break: break-all; - max-width: 20rem; + white-space: nowrap; transition: opacity 0.2s; pointer-events: none; z-index: 10; @@ -311,7 +309,7 @@ details[open] > .card-header::before { } .channel-webpush.badge-subscribed { - background: var(--success); + background: var(--accent); color: var(--text-on-color); } diff --git a/service/server/handlers_fragment.go b/service/server/handlers_fragment.go index b0d579c..88173e8 100644 --- a/service/server/handlers_fragment.go +++ b/service/server/handlers_fragment.go @@ -128,8 +128,7 @@ func (s *Server) buildAppListData(apps []notification.App) []AppListItem { for _, sub := range app.Subscriptions { if sub.Channel == notification.ChannelWebPush && sub.WebPush != nil { webPushSubs = append(webPushSubs, SubscriptionItem{ - ID: sub.ID, - Tooltip: sub.WebPush.Endpoint, + ID: sub.ID, }) } } diff --git a/service/server/handlers_subscriptions.go b/service/server/handlers_subscriptions.go index 97ce34e..e3878ea 100644 --- a/service/server/handlers_subscriptions.go +++ b/service/server/handlers_subscriptions.go @@ -159,6 +159,10 @@ func (s *Server) handleDeleteSubscription(w http.ResponseWriter, r *http.Request return } - util.SetToast(w, fmt.Sprintf("%s disabled", sub.Channel.Label()), "success") + message := fmt.Sprintf("%s disabled", sub.Channel.Label()) + if sub.Channel == notification.ChannelWebPush { + message = fmt.Sprintf("%s deleted", sub.Channel.Label()) + } + util.SetToast(w, message, "success") s.handleFragmentApps(w, r) } diff --git a/service/server/templates/app-list.html b/service/server/templates/app-list.html index 34015b7..f0b981f 100644 --- a/service/server/templates/app-list.html +++ b/service/server/templates/app-list.html @@ -32,7 +32,6 @@ {{range .Subscriptions}} {{$channel.Label}} - {{if .Tooltip}}{{.Tooltip}}{{end}}