Fix styling for badges

This commit is contained in:
blankhex committed 2026-10-24 19:27:57 +03:00
1 parent 2fa0b67943
commit 134d610a5d
2 files changed
+21 -13

No files matched your search

+4 -3
View File
@@ -107,12 +107,13 @@ function MeetingCard({ meeting, user, onChanged }) {
return ( return (
<div className="meeting-card"> <div className="meeting-card">
<div className="meeting-head"> <div className="meeting-head">
{/* Title and badges are grouped so the badges stay right next to the {/* Title and badges are grouped so they stay right next to the title
title instead of being pushed to the far edge. */} instead of being pushed to the far edge. */}
<div className="meeting-title"> <div className="meeting-title">
<h3>{meeting.title}</h3> <h3>{meeting.title}</h3>
{isAuthor && <span className="badge">your meeting</span>} {isAuthor && <span className="badge">your meeting</span>}
{/* Brief, colour-coded reminder of the viewer's own vote. */} {/* Brief reminder of the viewer's own vote, styled like the badges on
the sessions page and coloured by the vote. */}
{meeting.myVote && ( {meeting.myVote && (
<span className={`badge ${meeting.myVote}`}> <span className={`badge ${meeting.myVote}`}>
{meeting.myVote === 'join' ? 'will join' : 'will skip'} {meeting.myVote === 'join' ? 'will join' : 'will skip'}
+17 -10
View File
@@ -2,6 +2,7 @@
--bg: #0f1419; --bg: #0f1419;
--surface: #1a2129; --surface: #1a2129;
--surface-2: #232c36; --surface-2: #232c36;
--surface-3: #2c3743;
--border: #2e3a46; --border: #2e3a46;
--text: #e6edf3; --text: #e6edf3;
--muted: #8b98a5; --muted: #8b98a5;
@@ -367,15 +368,6 @@ label.checkbox {
letter-spacing: 0.03em; letter-spacing: 0.03em;
} }
/* Vote badges in the meeting title, coloured like the join / decline tallies. */
.badge.join {
color: var(--ok);
}
.badge.decline {
color: var(--danger);
}
.muted { .muted {
color: var(--muted); color: var(--muted);
} }
@@ -585,7 +577,22 @@ textarea:focus {
gap: 8px; gap: 8px;
} }
/* The wrapping gap already spaces the badges, so drop their own margin. */ /* The default badge shares its background with the meeting card, so nudge it
one step lighter (matching the badge/card contrast on the sessions page). */
.meeting-card .badge {
background: var(--surface-3);
}
/* The vote badge is coloured by the vote: green to join, red to skip. */
.meeting-card .badge.join {
color: var(--ok);
}
.meeting-card .badge.decline {
color: var(--danger);
}
/* The title wrapper's gap already spaces the badges. */
.meeting-title .badge { .meeting-title .badge {
margin-left: 0; margin-left: 0;
} }