diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 13:28:27 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 13:28:27 +0000 |
| commit | 10763285c8ef03e2e7639ba1c49e7e9162edbf2a (patch) | |
| tree | 6ffb629cc2031f1092f9cef692a244b19032ae75 /src/ui.js | |
| parent | use jsonld framing, add discussion title (diff) | |
| download | fedidag-10763285c8ef03e2e7639ba1c49e7e9162edbf2a.tar.gz fedidag-10763285c8ef03e2e7639ba1c49e7e9162edbf2a.zip | |
node collapsing (w/o relayouting)
Diffstat (limited to 'src/ui.js')
| -rw-r--r-- | src/ui.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -99,7 +99,7 @@ section.tombstone > main { `; const colors = new ColorHash({ lightness: 0.8 }); -export const Note = ({ id, type, attributedTo, published, content, smallHeader = false }) => { +export const Note = ({ id, type, attributedTo, published, content, smallHeader = false, onHide }) => { const backgroundColor = attributedTo.color || colors.hex(attributedTo.id); const username = attributedTo.name || attributedTo.preferredUsername; @@ -108,6 +108,7 @@ 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" /> |
