forked from Kieran/snort
note reaction adjustments
This commit is contained in:
parent
a27730c3d3
commit
52ddac5ef5
@ -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);
|
||||||
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
.reaction {
|
.reaction {
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.reaction > .note {
|
.reaction > .note {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user