Skip to content

Commit 13551c7

Browse files
authored
Merge pull request #925 from rylev/responsive-table
Make table more responsive to mobile
2 parents 5f5f2b6 + 5885ded commit 13551c7

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

site/static/compare.html

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
<link rel="alternate icon" type="image/png" href="/favicon-32x32.png">
1010
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
1111
<style>
12+
body {
13+
max-width: 800px;
14+
margin: 2% auto;
15+
}
16+
17+
#app {
18+
margin: 0 2%;
19+
}
20+
1221
ul li {
1322
margin: 0;
1423
}
@@ -165,6 +174,10 @@
165174
cursor: help;
166175
}
167176

177+
#benches {
178+
font-size: medium;
179+
}
180+
168181
#benches tbody::before {
169182
content: '';
170183
display: block;
@@ -179,6 +192,12 @@
179192
border-right: dotted 1px;
180193
text-align: left;
181194
word-break: break-word;
195+
width: 25%;
196+
min-width: 50px;
197+
}
198+
199+
#benches th+td {
200+
width: 25%;
182201
}
183202

184203
.benchmark-name {
@@ -188,7 +207,7 @@
188207
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
189208
</head>
190209

191-
<body class="container" style="max-width:800px">
210+
<body>
192211
<div>&gt; <a href="index.html">graphs</a>, <a href="compare.html">compare</a>,
193212
<a href="dashboard.html">dashboard</a>, <a href="bootstrap.html">bootstrap</a>,
194213
<a href="status.html">status</a>, <a href="help.html">help</a>.
@@ -322,7 +341,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
322341
</div>
323342
</fieldset>
324343
<div v-if="data" id="content" style="margin-top: 15px">
325-
<table id="benches" class="compare" style="width: 80%; margin: 0 auto; font-size: medium !important;">
344+
<table id="benches" class="compare">
326345
<template v-for="bench in benches">
327346
<tbody>
328347
<template v-for="run in bench.variants">

0 commit comments

Comments
 (0)