Skip to content

Commit 652b57d

Browse files
fix: fix styling of playground
1 parent 0f5c40d commit 652b57d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

website/src/catalog/RuleItem.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ const moreFeatures = computed(() => sortedFeatures.value.slice(2))
5151
<img class="logo" :src="'/langs/' + meta.language.toLowerCase() + '.svg'"/>
5252
</a>
5353
<div class="rule-badges">
54-
<Badge v-if="meta.hasFix" type="tip">
55-
<span class="override-badge-text-color">🛠️ Fix</span>
56-
</Badge>
54+
<span> <!-- dummy wrapper for better align items -->
55+
<Badge v-if="meta.hasFix" type="tip">
56+
<span class="override-badge-text-color">🛠️ Fix</span>
57+
</Badge>
58+
</span>
5759
<a :href="`/catalog/${meta.language}/`" target="_blank">
5860
<Badge type="info" :class="filter.selectedLanguages.length && 'highlight-filter'">
5961
📚 {{ languages[meta.language] }}
@@ -158,6 +160,7 @@ a:hover {
158160
.rule-badges {
159161
display: flex;
160162
gap: 4px;
163+
align-items: center;
161164
}
162165
163166
.rule-details {
@@ -197,6 +200,9 @@ a:hover {
197200
.VPBadge {
198201
transition-property: all;
199202
transition-duration: 0.25s;
203+
height: 24px;
204+
line-height: 24px;
205+
transform: translateY(0);
200206
}
201207
a > .VPBadge:hover {
202208
text-decoration: underline;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy