Skip to content

Commit d7c1fce

Browse files
authored
Merge branch 'main' into dependabot/github_actions/step-security/harden-runner-2.16.1
2 parents 0875b57 + 08b4b9f commit d7c1fce

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [Unreleased]
6+
7+
### Fixed
8+
9+
- Fix alignment of "Read full profile" buttons on TSC page: cards now use a flex-column layout so the button is consistently pinned to the bottom regardless of bio length.

src/app/tsc/page.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default function TSCSection() {
177177
return (
178178
<article
179179
key={`${fullName}-${index}`}
180-
className="h-full rounded-2xl border-2 border-white-dark bg-white p-6 sm:p-7">
180+
className="flex flex-col h-full rounded-2xl border-2 border-white-dark bg-white p-6 sm:p-7">
181181
{member.photo ? (
182182
<Image
183183
src={`/images/tsc/${member.photo}`}
@@ -194,7 +194,7 @@ export default function TSCSection() {
194194
/>
195195
)}
196196

197-
<div className="mt-5">
197+
<div className="flex flex-1 flex-col mt-5">
198198
<h3 className="text-xl sm:text-2xl mb-2">{fullName}</h3>
199199

200200
{member.gitHubAccount ? (
@@ -214,7 +214,9 @@ export default function TSCSection() {
214214
</a>
215215
) : null}
216216

217-
<p className="mt-4 text-base text-gray">{bioPreview}</p>
217+
<p className="grow mt-4 text-base text-gray">
218+
{bioPreview}
219+
</p>
218220

219221
{hasBio ? (
220222
<button
@@ -224,7 +226,7 @@ export default function TSCSection() {
224226
lastFocusedTriggerIdRef.current = `tsc-read-profile-${index}`;
225227
setSelectedMember(member);
226228
}}
227-
className="mt-4 inline-flex items-center rounded-full border-2 border-white-dark px-4 py-1.5 text-sm font-medium text-charcoal transition-colors hover:border-red focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-light focus-visible:ring-offset-2"
229+
className="mt-4 inline-flex items-center justify-center rounded-full border-2 border-white-dark px-4 py-1.5 text-sm font-medium text-charcoal transition-colors hover:border-red focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-light focus-visible:ring-offset-2"
228230
aria-label={`Read full profile for ${fullName}`}>
229231
Read full profile
230232
</button>
@@ -264,9 +266,6 @@ export default function TSCSection() {
264266
<p className="text-base text-gray grow">
265267
{resource.description}
266268
</p>
267-
<span className="mt-5 text-base font-medium text-red underline">
268-
Open resource
269-
</span>
270269
</a>
271270
))}
272271
</div>

0 commit comments

Comments
 (0)