From 9827e28c6a9a92cc64dcc180528373e399becb03 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 9 Oct 2022 15:07:23 -0400 Subject: [PATCH] Fix ellipsis colors --- prototype/icons/clone.svg | 20 ++++++++++++++++++++ prototype/index.html | 12 ++++++------ prototype/style.css | 17 ++++++++++++++--- 3 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 prototype/icons/clone.svg diff --git a/prototype/icons/clone.svg b/prototype/icons/clone.svg new file mode 100644 index 0000000..973e8c7 --- /dev/null +++ b/prototype/icons/clone.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/index.html b/prototype/index.html index 9a4467c..04a1c4f 100644 --- a/prototype/index.html +++ b/prototype/index.html @@ -64,14 +64,14 @@ for the JavaScript code in this page. viewing - owner/repo/branch | - gitea@git.tebibyte.media:/owner/repo + owner/repo/branch @@ -84,22 +84,22 @@ for the JavaScript code in this page. file name - most recent commit + most recent commit directory/ - most recent commit + most recent commit file name - most recent commit + most recent commit file name - most recent commit + most recent commit diff --git a/prototype/style.css b/prototype/style.css index 46b5b11..fad4ba0 100644 --- a/prototype/style.css +++ b/prototype/style.css @@ -130,7 +130,7 @@ header .buttonList { var(--background) 100%); } - nav > .buttonListWrap:first-child { + nav > .buttonListWrap { text-align: center; } @@ -188,9 +188,15 @@ header .buttonList { .files td { border: none; padding: 0; + min-width: 0; +} + +.files td > * { + text-overflow: ellipsis; white-space: nowrap; overflow: hidden; - text-overflow: ellipsis; + max-width: 100%; + display: block; } .files td:last-child { @@ -218,7 +224,8 @@ header .buttonList { .dashboardButton::before, .watchButton::before, .starButton::before, -.forkButton::before +.forkButton::before, +.cloneButton::before { content: ""; width: 16px; @@ -262,6 +269,10 @@ header .buttonList { background-image: url("icons/fork.svg"); } +.cloneButton::before { + background-image: url("icons/clone.svg"); +} + .previewLabel { color: var(--subtle-foreground); }