Skip to content

Commit 7ff651d

Browse files
authored
Merge pull request #323 from raifdmueller/fix/feedback-styling
feat: style discussion section in modal with heading and background
2 parents b70531c + 3355a21 commit 7ff651d

4 files changed

Lines changed: 16 additions & 1 deletion

File tree

website/src/components/anchor-modal.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,12 @@ export async function loadAnchorContent(anchorId) {
311311
if (fb.recentComments && fb.recentComments.length > 0) {
312312
const commentsHtml = `
313313
<div class="feedback-section">
314+
<h4 class="feedback-heading">
315+
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
316+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"></path>
317+
</svg>
318+
${i18n.t('feedback.discussionHeading')}
319+
</h4>
314320
<div class="feedback-comments">
315321
${fb.recentComments
316322
.map(

website/src/styles/main.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,14 @@ body {
184184

185185
/* Feedback section in anchor modal (comments area) */
186186
.feedback-section {
187-
@apply mt-8 pt-6 border-t border-gray-200 dark:border-gray-700;
187+
@apply mt-8 p-4 rounded-lg;
188+
@apply bg-gray-50 dark:bg-gray-800/50;
189+
@apply border border-gray-200 dark:border-gray-700;
190+
}
191+
192+
.feedback-heading {
193+
@apply flex items-center gap-2 text-sm font-semibold mb-3;
194+
@apply text-gray-500 dark:text-gray-400;
188195
}
189196

190197
.feedback-actions {

website/src/translations/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@
6161
"feedback.vote": "Abstimmen",
6262
"feedback.discuss": "Diskutieren",
6363
"feedback.cta": "Ist dieser Anker hilfreich?",
64+
"feedback.discussionHeading": "Community-Diskussion",
6465
"feedback.requiresLogin": "Erfordert GitHub-Login"
6566
}

website/src/translations/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@
6161
"feedback.vote": "Vote",
6262
"feedback.discuss": "Discuss",
6363
"feedback.cta": "Is this anchor useful?",
64+
"feedback.discussionHeading": "Community Discussion",
6465
"feedback.requiresLogin": "Requires GitHub login"
6566
}

0 commit comments

Comments
 (0)