Fix the member home layout: align the Code Farm promo, fill sparse post rows
The signed-in dashboard is a 1200px two-column grid, but the shared Code Farm promo section stayed at the guest page's 960px centered measure, so it floated misaligned under the dashboard columns. A landing-game-dashboard modifier (applied only when a user is signed in) stretches it to the dashboard's own measure and gutters. The Latest Posts grid becomes repeat(auto-fit, minmax(320px, 1fr)) so a single post fills the row instead of leaving a dead half-column while two or more still lay out as the original two columns. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
2921edd7f3
commit
c09e6b328c
@ -171,7 +171,7 @@
|
||||
|
||||
.dashboard-posts-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 0.875rem;
|
||||
}
|
||||
|
||||
@ -1004,6 +1004,12 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.landing-game-dashboard {
|
||||
max-width: 1200px;
|
||||
padding: 0 1.25rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.landing-game-body {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
@ -146,7 +146,7 @@
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<section class="landing-game" aria-labelledby="landing-game-heading">
|
||||
<section class="landing-game{% if user %} landing-game-dashboard{% endif %}" aria-labelledby="landing-game-heading">
|
||||
<div class="landing-game-glow"></div>
|
||||
<div class="landing-game-body">
|
||||
<span class="landing-game-eyebrow">New on DevPlace</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user