mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Make feedback access more visible
Move the feedback entry out of the Extras submenu into its own top-level menubar item, and add a floating action button (bottom right) as a second, always-visible entry point. Both stay gated behind IS_OWN_HOSTED_INSTANCE like before. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e2a09fbb43
commit
d48172f4d1
2 files changed
+45
-12
No files matched your search
@@ -3457,6 +3457,32 @@
|
|||||||
max-width: 90vw;
|
max-width: 90vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ts-feedback-fab {
|
||||||
|
position: fixed;
|
||||||
|
right: 1.25rem;
|
||||||
|
bottom: 1.25rem;
|
||||||
|
z-index: 500;
|
||||||
|
width: 3rem;
|
||||||
|
height: 3rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
background: var(--accent, #4a7dfc);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
line-height: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
|
||||||
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-feedback-fab:hover {
|
||||||
|
transform: scale(1.06);
|
||||||
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
.ts-feedback-intro,
|
.ts-feedback-intro,
|
||||||
.ts-feedback-hint {
|
.ts-feedback-hint {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
+19
-12
@@ -8302,21 +8302,17 @@ function AppInner() {
|
|||||||
<span className="ts-menu-item-label">{t("menu.extras.options")}</span>
|
<span className="ts-menu-item-label">{t("menu.extras.options")}</span>
|
||||||
<span className="ts-menu-item-shortcut">Alt+P</span>
|
<span className="ts-menu-item-shortcut">Alt+P</span>
|
||||||
</button>
|
</button>
|
||||||
{IS_OWN_HOSTED_INSTANCE && (
|
|
||||||
<button
|
|
||||||
className="ts-menu-item"
|
|
||||||
onClick={() => {
|
|
||||||
setFeedbackOpen(true);
|
|
||||||
setExtrasMenuOpen(false);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<span className="ts-menu-item-icon">💬</span>
|
|
||||||
<span className="ts-menu-item-label">{t("menu.extras.feedback")}</span>
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{IS_OWN_HOSTED_INSTANCE && (
|
||||||
|
<span
|
||||||
|
className="ts-menubar-item"
|
||||||
|
onClick={() => setFeedbackOpen(true)}
|
||||||
|
>
|
||||||
|
💬 {t("menu.extras.feedback")}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
<span className="ts-menubar-item">{t("menu.help")}</span>
|
<span className="ts-menubar-item">{t("menu.help")}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -8576,6 +8572,17 @@ function AppInner() {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{IS_OWN_HOSTED_INSTANCE && !feedbackOpen && (
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="ts-feedback-fab"
|
||||||
|
onClick={() => setFeedbackOpen(true)}
|
||||||
|
title={t("menu.extras.feedback")}
|
||||||
|
>
|
||||||
|
💬
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
{feedbackOpen && <FeedbackDialog onClose={() => setFeedbackOpen(false)} />}
|
{feedbackOpen && <FeedbackDialog onClose={() => setFeedbackOpen(false)} />}
|
||||||
|
|
||||||
{favoritesDialogMode && (
|
{favoritesDialogMode && (
|
||||||
|
|||||||
Reference in new issue
Block a user