From 1fa1ffdc9e2c25a4e87285962fbc9128ebc22f71 Mon Sep 17 00:00:00 2001 From: ddiu8081 Date: Tue, 6 Apr 2021 15:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20set=20max-width=20for=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.svelte | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Header.svelte b/src/components/Header.svelte index e787a5a..e8e169f 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -83,21 +83,23 @@ } .gh-title { color: var(--color-text-lighter); - margin-left: 8px; + margin: 0 8px; font-size: 0.9rem; font-weight: bold; white-space: nowrap; transform: translateX(-1rem); transition: all .3s ease; opacity: 0; + overflow-x: hidden; + text-overflow: ellipsis; + @include respond-to(sm) { + flex: 1; + } &:before { content: '/'; color: var(--color-text-lighter); - margin: 0 8px; - overflow-x: hidden; - text-overflow: ellipsis; + margin-right: 8px; @include respond-to(sm) { - flex: 1; content: '|'; } }