Skip to content

Commit 6097bf4

Browse files
committed
feat: polish UI some more
1 parent 884090a commit 6097bf4

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

app/components/CacheAnalysis.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ const { servedBy, cacheStatus } = getCacheAnalysis(props.cacheHeaders);
6767
</template>
6868

6969
<style scoped>
70+
.container {
71+
font-size: 0.9em;
72+
}
73+
74+
hr {
75+
margin-top: 0.5em;
76+
}
77+
7078
.cache-heading h4 {
7179
padding: 0;
7280
/* I'm sorry */

app/components/RawCacheHeaders.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,22 @@ onUpdated(highlightJson);
1919
</template>
2020

2121
<style scoped>
22-
/* FIXME(serhalp) This is leaky. I'm doing this:
23-
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_box_alignment/Box_alignment_in_flexbox#alignment_and_auto_margins.
24-
* But this component shouldn't "know" about its parent's layout needs.
25-
*/
2622
pre {
23+
/* The default is too airy */
24+
padding-bottom: 0;
25+
margin-bottom: 0;
26+
/* FIXME(serhalp) This is leaky. I'm doing this:
27+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_box_alignment/Box_alignment_in_flexbox#alignment_and_auto_margins.
28+
* But this component shouldn't "know" about its parent's layout needs.
29+
*/
2730
margin-top: auto;
31+
margin-right: auto;
2832
}
2933
3034
code {
31-
font-size: 0.7em;
35+
font-size: 0.6em;
3236
33-
max-width: 40vw;
37+
max-width: 30vw;
3438
overflow-x: scroll;
3539
}
3640
</style>

0 commit comments

Comments
 (0)