Skip to content

Commit 5cb564e

Browse files
author
Adam Argyle
committed
nit centering and remove unit type from measurements
1 parent 7732bca commit 5cb564e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

app/components/selection/distance.element.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,21 @@
2929
}
3030

3131
:host > figure figcaption {
32+
min-height: 3ex;
3233
width: max-content;
34+
display: inline-flex;
35+
align-items: center;
36+
justify-content: center;
3337
color: white;
3438
text-shadow: 0 0.5px 0 hsla(0, 0%, 0%, 0.4);
3539
box-shadow: 0 0.5px 0 hsla(0, 0%, 0%, 0.4);
3640
background: var(--line-color);
3741
border-radius: 1em;
38-
text-align: center;
39-
line-height: 1.1;
4042
font-size: 0.7em;
41-
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
42-
padding: 0.25em 0.5em 0.275em;
43-
font-variant-numeric: proportional-num oldstyle-nums stacked-fractions slashed-zero;
43+
font-weight: bold;
44+
line-height: 1.1;
45+
font-family: system-ui;
46+
padding: 0 1ex;
4447
}
4548

4649
:host > figure span {

app/components/selection/distance.element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class Distance extends HTMLElement {
5252
return `
5353
<figure quadrant="${q}">
5454
<div></div>
55-
<figcaption><b>${d}</b>px</figcaption>
55+
<figcaption>${Math.round(d)}</figcaption>
5656
<div></div>
5757
</figure>
5858
`

0 commit comments

Comments
 (0)