Skip to content

Commit cf82dac

Browse files
rdmuellerclaude
andcommitted
feat: add floating feedback button for better visibility
Adds a fixed-position FAB (bottom-right) with speech bubble icon that links to GitHub Issues with prefilled template. Footer link remains as secondary access point. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 88e9020 commit cf82dac

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

src/components/RiskRadar.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ export default function RiskRadar() {
134134
</div>
135135
</div>
136136

137+
<a href={`https://github.com/LLM-Coding/vibe-coding-risk-radar/issues/new?title=${encodeURIComponent(t.footer.feedbackTitle)}&body=${encodeURIComponent(t.footer.feedbackBody)}`} target="_blank" rel="noopener" className={styles.fab}>
138+
<span className={styles.fabIcon}>💬</span> {t.footer.feedback}
139+
</a>
140+
137141
<DocSidebar docs={t.docs} open={docsOpen} onClose={() => setDocsOpen(false)} />
138142
</div>
139143
);

src/components/RiskRadar.module.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,35 @@
214214
.footerLink {
215215
color: var(--text-secondary);
216216
}
217+
218+
.fab {
219+
position: fixed;
220+
bottom: 24px;
221+
right: 24px;
222+
display: flex;
223+
align-items: center;
224+
gap: 6px;
225+
background: var(--bg-card);
226+
border: 1px solid var(--border);
227+
border-radius: 24px;
228+
padding: 10px 14px;
229+
font-size: 14px;
230+
font-weight: 600;
231+
color: var(--text-secondary);
232+
cursor: pointer;
233+
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
234+
transition: all 0.2s;
235+
text-decoration: none;
236+
z-index: 50;
237+
}
238+
239+
.fab:hover {
240+
color: var(--text-heading);
241+
border-color: var(--text-secondary);
242+
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
243+
}
244+
245+
.fabIcon {
246+
font-size: 18px;
247+
line-height: 1;
248+
}

0 commit comments

Comments
 (0)