FIX: Prevent layout shift caused by locale description length (#28807)

* FIX: Prevent layout shift caused by locale description length

* Fix linting error

* Apply prettier
This commit is contained in:
Ella E. 2024-09-09 15:33:43 -06:00 committed by GitHub
parent e4457ed2c6
commit a7db66e8ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 14 deletions

View File

@ -34,19 +34,24 @@
/>
</:actions>
</AdminPageHeader>
<div class="content-list">
<ul class="admin-badge-list">
{{#each this.model as |badge|}}
<li class="admin-badge-list-item">
<LinkTo @route={{this.selectedRoute}} @model={{badge.id}}>
<BadgeButton @badge={{badge}} />
{{#if badge.newBadge}}
<span class="list-badge">{{i18n "filters.new.lower_title"}}</span>
{{/if}}
</LinkTo>
</li>
{{/each}}
</ul>
<div class="admin-container">
<div class="content-list">
<ul class="admin-badge-list">
{{#each this.model as |badge|}}
<li class="admin-badge-list-item">
<LinkTo @route={{this.selectedRoute}} @model={{badge.id}}>
<BadgeButton @badge={{badge}} />
{{#if badge.newBadge}}
<span class="list-badge">{{i18n
"filters.new.lower_title"
}}</span>
{{/if}}
</LinkTo>
</li>
{{/each}}
</ul>
</div>
{{outlet}}
</div>
{{outlet}}
</div>

View File

@ -5,6 +5,7 @@
.badges {
display: flex;
flex-wrap: wrap;
flex-direction: column;
.badges-header {
display: flex;
align-items: center;

View File

@ -4,6 +4,7 @@
margin: 0 0.25em;
.content-list {
flex: 0 0 100%;
width: 100%;
.admin-badge-list {
max-height: 40vh;
margin-right: 0;