diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Right-align the repo owner to the header edge
-rw-r--r--assets/cgit.css5
1 file changed, 4 insertions, 1 deletion
diff --git a/assets/cgit.css b/assets/cgit.css
index 56beb78..878e96c 100644
--- a/assets/cgit.css
+++ b/assets/cgit.css
@@ -202,9 +202,12 @@ div#cgit button:focus-visible {
div#cgit #header {
display: grid;
grid-template-columns: auto 1fr auto auto;
+ /* The owner spans the switcher and toggle columns so it right-aligns
+ * to the same edge as the toggle above it. Confined to the switcher
+ * column alone it stopped short by the toggle's width plus the gap. */
grid-template-areas:
"logo heading switch theme"
- "logo desc owner .";
+ "logo desc owner owner";
align-items: center;
column-gap: 10px;
width: 100%;