chiark / gitweb /
clock: Improve layout slightly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 19 Mar 2021 01:23:36 +0000 (01:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 20:12:41 +0000 (20:12 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
server dummy - alice - Otter.html
src/clock.rs

index ecadafe2fad7abb0cbc72d9c083f2aba291bb1d2..d1b80ba01e78fe6543a82513e22cc72a0c327cff 100644 (file)
@@ -323,11 +323,11 @@ g
 </clipPath>
 <text x="1" y="6" font-family="Latin Modern Mono, monospace"
       font-weight="700" font-size="6">123&#x25cb;04</text>
-<text x="23" y="6" clip-path="url(#clockclip42)" font-size="4">Slartibartfast</text>
+<text x="21" y="6" clip-path="url(#clockclip42)" font-size="4">Slartibartfast</text>
 <text x="1" y="13" fill="black"
       style="font-variant-numeric:normal; font-family:monospace;" font-size="6">909&#x2691;99</text>
-<text x="23" y="13" background="blue" fill="pink" stroke="red"
-      stroke-width="0.1" clip-path="url(#clockclip42)" font-size="8">&nbsp;&nbsp;-</text>
+<text x="27" y="13" background="blue" fill="pink" stroke="red"
+      stroke-width="0.1" clip-path="url(#clockclip42)" font-size="8">-</text>
 
 </g>
 
index 0c2fdb39f5313d2b9ca1c01eab6b13b8743441a1..7e2b39c8b6be48888cf91e030deafa4aa8e7ca14 100644 (file)
@@ -308,15 +308,15 @@ impl PieceTrait for Clock {
       )?;
       if let Some(nick) = u.nick {
         write!(f, r##"
-  <text x="23" y="{}" clip-path="url(#def.{}.cl)" font-size="4">{}</text>"##,
+  <text x="21" y="{}" clip-path="url(#def.{}.cl)" font-size="4">{}</text>"##,
                y,
                vpid,
                htmlescape::encode_minimal(nick),
         )?;
       } else {
         write!(f, r##"
-  <text x="23" y="{}" fill="pink" stroke="red" 
-   stroke-width="0.1" font-size="8">&nbsp;&nbsp;-</text>"##,
+  <text x="27" y="{}" fill="pink" stroke="red" 
+   stroke-width="0.1" font-size="8">-</text>"##,
                y
         )?;
       }