diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 15:27:22 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 15:27:22 +0000 |
| commit | dc89e633a765f7aa06c756f07b188c973180b00d (patch) | |
| tree | 5d7f2114b95d160ccd69b20422a8141489f2f338 | |
| parent | collapse on header only (diff) | |
| download | fedidag-dc89e633a765f7aa06c756f07b188c973180b00d.tar.gz fedidag-dc89e633a765f7aa06c756f07b188c973180b00d.zip | |
fix name/time header styling
| -rw-r--r-- | src/ui.js | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -35,6 +35,7 @@ const Time = ({ time }) => { dom.css` .flex-space { flex: 1; + margin: 0; } `; @@ -61,8 +62,7 @@ section > header { display: flex; flex-direction: row; - height: 2.5em; - line-height: 2.5em; + height: 1.75rem; color: var(--theme-header-fg); background: var(--theme-header-bg); @@ -81,16 +81,26 @@ section > header.small { section > header > * { margin: 0 0.5em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + line-height: 1.75rem; } section > header > img { height: 2em; width: 2em; + flex: 0 0 2em; margin: 0.25em; border-radius: 0.2em; } +section > header > .user { + flex: 0 0.5 auto; +} + section > header > .time { + flex: 0 1 auto; font-size: 0.8em; color: #363636; } |
