Skip to content

Commit 114bb03

Browse files
authored
Add last layout and grid improvements (#874)
* apply media queries on footer component * make sure button don't show ellipsis unnecessarily * add selector and move style from components to app.scss * add selector to random mismatches
1 parent ee4caff commit 114bb03

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

resources/js/Components/WikidataToolFooter.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,26 @@ withDefaults(defineProps<{
9090
margin-block-start: var(--dimension-layout-xxsmall);
9191
}
9292
93-
@media (min-width: $width-breakpoint-tablet) {
93+
@media(min-width: $min-width-breakpoint-mobile) {
94+
padding: var(--dimension-layout-xsmall);
95+
}
96+
97+
@media (min-width: $min-width-breakpoint-tablet) {
9498
flex-direction: row;
9599
padding: var(--dimension-layout-small);
96100
97101
section {
98102
margin-inline-end: var(--dimension-layout-large);
99103
}
100104
101-
section + section {
105+
section+section {
102106
margin-block-start: 0;
103107
}
104108
}
109+
110+
@media(min-width: $min-width-breakpoint-desktop) {
111+
padding: var(--dimension-layout-medium);
112+
}
105113
}
106114
}
107115
</style>

resources/js/Pages/Home.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{{ $i18n('about-mismatch-finder-title') }}
88
</h2>
99
<cdx-button
10+
class="heading-button"
1011
id="faq-button"
1112
weight="quiet"
1213
action="progressive"
@@ -88,7 +89,7 @@
8889
{{ $i18n('item-form-title') }}
8990
</h2>
9091
<cdx-button
91-
class="random-mismatches"
92+
class="random-mismatches heading-button"
9293
weight="normal"
9394
@click="showRandom()"
9495
:disabled="loading"

resources/js/Pages/Results.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
{{ $i18n('results-page-title') }}
1616
</h2>
1717
<cdx-button
18+
class="heading-button"
1819
id="instructions-button"
1920
weight="quiet"
2021
action="progressive"

resources/sass/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ dl.import-meta .download-csv {
381381
}
382382
}
383383

384+
.heading-button {
385+
flex-shrink: 0; // don't show ellipsis as long as the text fits
386+
}
387+
384388
.svg {
385389
&-white-fill {
386390
filter: invert(1);

0 commit comments

Comments
 (0)