Skip to content

Commit 5088335

Browse files
authored
Merge pull request #3070 from XRPLF/issue-2671
2 parents 420ed5f + ebca41a commit 5088335

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

blog/index.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default function Index() {
207207
className="mb-4"
208208
/>
209209
<div
210-
className={`d-inline-block label blog-category-${card.category_id}`}
210+
className={`d-block label blog-category-${card.category_id}`}
211211
>
212212
{translate(card.category)}
213213
</div>

static/css/devportal2024-v1.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/_blog.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,26 @@
5555
width: 100%;
5656
}
5757
}
58+
.label{
59+
width: fit-content;
60+
}
61+
}
62+
63+
// Add styles to ensure proper wrapping on tablet sizes
64+
@media (min-width: 768px) and (max-width: 991px) {
65+
#category-list {
66+
display: block;
67+
68+
img {
69+
display: block;
70+
margin-bottom: 10px;
71+
}
72+
73+
.label {
74+
display: block !important;
75+
margin-bottom: 15px;
76+
}
77+
}
5878
}
5979

6080
.category_sidebar {

0 commit comments

Comments
 (0)