diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 15:07:36 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 15:07:36 +0000 |
| commit | 94d1b4a08b145dad8556fd536a2e776391406067 (patch) | |
| tree | 343ffa7876b8c092d23f6c1d75b9c27c96c8f19e /src/ui.js | |
| parent | actually visually collapse nodes (diff) | |
| download | fedidag-94d1b4a08b145dad8556fd536a2e776391406067.tar.gz fedidag-94d1b4a08b145dad8556fd536a2e776391406067.zip | |
collapse on header only
Diffstat (limited to 'src/ui.js')
| -rw-r--r-- | src/ui.js | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -66,6 +66,13 @@ section > header { color: var(--theme-header-fg); background: var(--theme-header-bg); + + cursor: pointer; + transition: opacity 0.3s; +} + +section > header:hover { + opacity: 0.5; } section > header.small { @@ -119,11 +126,10 @@ export const Note = ({ id, type, attributedTo, published, content, smallHeader = css={{ '--theme-header-bg': backgroundColor }} class={type === 'Tombstone' ? 'tombstone' : ''} dataset={{ id }} - onClick={onHide} > {smallHeader - ? <header class="small" /> - : <header> + ? <header class="small" onClick={onHide} /> + : <header onClick={onHide}> <img src={new URL(attributedTo.icon.url, attributedTo.id)} /> <span class="user">{username}</span> <Space /> |
