Skip to content

Commit a82430e

Browse files
authored
Merge pull request #1929 from Zentrik/fix-graph-styling
Fix styling of benchmark detail graphs
2 parents 8eb7b0f + 97766b2 commit a82430e

File tree

4 files changed

+48
-39
lines changed

4 files changed

+48
-39
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.columns {
2+
display: flex;
3+
flex-wrap: wrap;
4+
gap: 15px;
5+
margin: 10px 0;
6+
7+
.grow {
8+
flex-grow: 1;
9+
}
10+
11+
&.graphs {
12+
flex-wrap: nowrap;
13+
}
14+
}
15+
16+
.graphs {
17+
margin-top: 15px;
18+
}
19+
20+
.rows {
21+
display: flex;
22+
flex-direction: column;
23+
gap: 10px;
24+
25+
&.center-items {
26+
align-items: center;
27+
}
28+
}
29+
30+
.title {
31+
&.bold,
32+
.bold {
33+
font-weight: bold;
34+
}
35+
36+
&.info {
37+
margin-bottom: 15px;
38+
}
39+
}

site/frontend/src/pages/compare/compile/table/benchmark-detail-graph.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,7 @@ onMounted(() => {
266266
</div>
267267
</div>
268268
</template>
269+
270+
<style scoped lang="scss">
271+
@import "../../benchmark-detail.scss";
272+
</style>

site/frontend/src/pages/compare/compile/table/benchmark-detail.vue

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -250,51 +250,13 @@ onMounted(() => {
250250
</template>
251251

252252
<style scoped lang="scss">
253-
.columns {
254-
display: flex;
255-
flex-wrap: wrap;
256-
gap: 15px;
257-
margin: 10px 0;
258-
259-
.grow {
260-
flex-grow: 1;
261-
}
262-
263-
&.graphs {
264-
flex-wrap: nowrap;
265-
}
266-
}
267-
268-
.graphs {
269-
margin-top: 15px;
270-
}
271-
272-
.rows {
273-
display: flex;
274-
flex-direction: column;
275-
gap: 10px;
276-
277-
&.center-items {
278-
align-items: center;
279-
}
280-
}
253+
@import "../../benchmark-detail.scss";
281254
282255
.shortcut {
283256
margin-top: 15px;
284257
text-align: left;
285258
}
286259
287-
.title {
288-
&.bold,
289-
.bold {
290-
font-weight: bold;
291-
}
292-
293-
&.info {
294-
margin-bottom: 15px;
295-
}
296-
}
297-
298260
table {
299261
align-self: flex-start;
300262
margin-right: 20px;

site/frontend/src/pages/compare/runtime/benchmark-detail-graph.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,7 @@ onMounted(() => {
256256
</div>
257257
</div>
258258
</template>
259+
260+
<style scoped lang="scss">
261+
@import "../benchmark-detail.scss";
262+
</style>

0 commit comments

Comments
 (0)