Raise feedback FAB and add occasional nudge bubble

- Move the floating feedback button up above the message compose bar
  so it no longer overlaps the input/send controls.
- Add a small dismissible speech bubble inviting feedback, shown once
  ~45s after load and at most every 3 days (tracked via localStorage),
  auto-hiding after 14s if not interacted with.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-09-10 08:23:50 +02:00
1 parent d48172f4d1
commit 6c764578a7
3 files changed
+139 -10

No files matched your search

+66 -2
View File
@@ -3457,11 +3457,18 @@
max-width: 90vw;
}
.ts-feedback-fab {
.ts-feedback-fab-wrap {
position: fixed;
right: 1.25rem;
bottom: 1.25rem;
bottom: 5.5rem;
z-index: 500;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.5rem;
}
.ts-feedback-fab {
width: 3rem;
height: 3rem;
border-radius: 50%;
@@ -3483,6 +3490,63 @@
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.ts-feedback-bubble {
position: relative;
max-width: 13rem;
background: var(--panel-bg, #23262e);
color: var(--text, #eee);
border: 1px solid var(--border);
border-radius: 0.6rem;
padding: 0.5rem 0.7rem;
font-size: 12px;
line-height: 1.35;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
animation: ts-feedback-bubble-in 0.2s ease;
}
.ts-feedback-bubble::after {
content: "";
position: absolute;
right: 1.1rem;
bottom: -0.4rem;
width: 0.8rem;
height: 0.8rem;
background: inherit;
border-right: 1px solid var(--border);
border-bottom: 1px solid var(--border);
transform: rotate(45deg);
}
.ts-feedback-bubble-close {
position: absolute;
top: -0.4rem;
right: -0.4rem;
width: 1.1rem;
height: 1.1rem;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--panel-bg, #23262e);
color: var(--text-muted, #999);
font-size: 10px;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 0;
}
@keyframes ts-feedback-bubble-in {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.ts-feedback-intro,
.ts-feedback-hint {
font-size: 12px;