From 567d5b36ed812fb90b967c71b45fb9d6dd296f74 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Thu, 2 May 2019 02:26:05 -0400 Subject: [PATCH] endpoint names don't shrink when url is long --- .dockerignore | 1 + Dockerfile | 1 + config/templates/index.html | 20 ++++++-------------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2f7896d..be6eccf 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ target/ +config/endstat_conf.ron diff --git a/Dockerfile b/Dockerfile index 4ba4f0a..27b5468 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ WORKDIR /app COPY --from=builder /app/target/release/endstat /app COPY ./config /app/config +RUN mv /app/config/endstat_conf.example.ron /app/config/endstat_conf.ron EXPOSE 8080 CMD ["/app/endstat"] diff --git a/config/templates/index.html b/config/templates/index.html index 3bb4531..0857627 100644 --- a/config/templates/index.html +++ b/config/templates/index.html @@ -35,21 +35,13 @@ } p { margin: 0; } - a { - color: #fff; - text-decoration: none; - } + a { color: #fff; text-decoration: none; } h1 { margin: 0; } - h3 { margin: 0; text-align: justify; } - .info { - display: flex; - align-items: baseline; - } - - .spacer { - flex: 1 0 1rem; - } + h3 { margin: 0; text-align: justify; flex-shrink: 0; } + .info { display: flex; align-items: baseline; } + .info a { text-align: right; } + .spacer { flex: 1 0 1rem; } .indicator { width: 1rem; @@ -59,7 +51,7 @@ .ok { background-color: #4ed34e; } .warn { background-color: #fcfc64; } .error { background-color: #ff392e; } - .error-msg { margin-top: 1rem; font-family: 'Source Code Pro', monospace;} + .error-msg { margin-top: 1rem; font-family: 'Source Code Pro', monospace; }