Skip to content

Commit 22e7bfa

Browse files
authored
Merge pull request #1768 from Kobzol/compare-page-layout
Fix/improve layout of compare page
2 parents 544a3ca + e579b66 commit 22e7bfa

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

site/frontend/src/pages/compare/compile/table/comparisons-table.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ function prettifyRawNumber(number: number): string {
2323
return number.toLocaleString();
2424
}
2525
26+
// Modify this when changing the number of columns in the table!
2627
const columnCount = computed(() => {
27-
const base = 7;
28+
const base = 8;
2829
if (props.showRawData) {
2930
return base + 2;
3031
}
@@ -214,7 +215,8 @@ const {toggleExpanded, isExpanded} = useExpandedStore();
214215
align-items: center;
215216
text-align: right;
216217
217-
& > div {
218+
& > div,
219+
& > span {
218220
width: 70px;
219221
}
220222
}

site/frontend/src/pages/compare/metric-selector.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function changeMetric(e: Event) {
5151
.wrapper {
5252
display: flex;
5353
flex-direction: row;
54+
flex-wrap: wrap;
5455
align-items: center;
5556
margin: 10px 0;
5657

site/frontend/templates/pages/compare.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<style>
66
body {
7-
max-width: 1000px;
7+
max-width: 1100px;
88
margin: 2% auto;
99
}
1010

0 commit comments

Comments
 (0)