1
0
forked from Kieran/snort

note reaction adjustments

This commit is contained in:
Alejandro Gomez 2023-01-26 07:51:03 +01:00
parent a27730c3d3
commit 52ddac5ef5
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
4 changed files with 27 additions and 16 deletions

View File

@ -40,6 +40,18 @@
padding-left: 46px; padding-left: 46px;
} }
.note .footer .footer-reactions {
display: flex;
flex-direction: row;
margin-left: auto;
}
@media (min-width: 720px) {
.note .footer .footer-reactions {
margin-left: 0;
}
}
.note>.footer .ctx-menu { .note>.footer .ctx-menu {
background-color: var(--note-bg); background-color: var(--note-bg);
color: var(--font-secondary-color); color: var(--font-secondary-color);

View File

@ -186,23 +186,24 @@ export default function NoteFooter(props: NoteFooterProps) {
} }
return ( return (
<> <div className="footer">
<div className="footer"> <div className="footer-reactions">
<Menu menuButton={<div className="reaction-pill"> {tipButton()}
<div className="reaction-pill-icon"> {reactionIcons()}
<Dots />
</div>
</div>} menuClassName="ctx-menu">
{menuItems()}
</Menu>
<div className={`reaction-pill ${reply ? 'reacted' : ''}`} onClick={(e) => setReply(s => !s)}> <div className={`reaction-pill ${reply ? 'reacted' : ''}`} onClick={(e) => setReply(s => !s)}>
<div className="reaction-pill-icon"> <div className="reaction-pill-icon">
<Reply /> <Reply />
</div> </div>
</div> </div>
<Menu menuButton={<div className="reaction-pill">
{reactionIcons()} <div className="reaction-pill-icon">
{tipButton()} <Dots />
</div>
</div>}
menuClassName="ctx-menu"
>
{menuItems()}
</Menu>
</div> </div>
<NoteCreator <NoteCreator
autoFocus={true} autoFocus={true}
@ -212,6 +213,6 @@ export default function NoteFooter(props: NoteFooterProps) {
setShow={setReply} setShow={setReply}
/> />
<LNURLTip svc={author?.lud16 || author?.lud06} onClose={() => setTip(false)} show={tip} /> <LNURLTip svc={author?.lud16 || author?.lud06} onClose={() => setTip(false)} show={tip} />
</> </div>
) )
} }

View File

@ -1,5 +1,4 @@
.reaction { .reaction {
margin-bottom: 24px;
} }
.reaction > .note { .reaction > .note {

View File

@ -106,8 +106,7 @@ html.light .card {
.card>.footer { .card>.footer {
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row;
margin-top: 12px;
} }
button { button {