Improve unauth
This commit is contained in:
parent
0399250906
commit
9067a024ab
2 changed files with 31 additions and 6 deletions
|
@ -432,7 +432,10 @@ export function CommentCreate(props: Props) {
|
||||||
<div
|
<div
|
||||||
role="button"
|
role="button"
|
||||||
className="comment-create__auth"
|
className="comment-create__auth"
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
if (embed) {
|
if (embed) {
|
||||||
window.open(`https://odysee.com/$/${PAGES.AUTH}?redirect=/$/${PAGES.LIVESTREAM}`);
|
window.open(`https://odysee.com/$/${PAGES.AUTH}?redirect=/$/${PAGES.LIVESTREAM}`);
|
||||||
return;
|
return;
|
||||||
|
@ -446,10 +449,18 @@ export function CommentCreate(props: Props) {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormField type="textarea" name={'comment_signup_prompt'} placeholder={__('Say something about this...')} />
|
<FormField
|
||||||
<div className="section__actions--no-margin">
|
type="textarea"
|
||||||
<Button disabled button="primary" label={__('Post --[button to submit something]--')} requiresAuth />
|
name="comment__signup-prompt"
|
||||||
</div>
|
placeholder={__('Say something about this...')}
|
||||||
|
disabled={isMobile}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{!isMobile && (
|
||||||
|
<div className="section__actions--no-margin">
|
||||||
|
<Button disabled button="primary" label={__('Post --[button to submit something]--')} requiresAuth />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,21 @@
|
||||||
|
|
||||||
.comment-create__auth {
|
.comment-create__auth {
|
||||||
.MuiAutocomplete-root {
|
.MuiAutocomplete-root {
|
||||||
margin-bottom: var(--spacing-m);
|
@media (min-width: $breakpoint-small) {
|
||||||
|
margin-top: var(--spacing-xxs);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $breakpoint-small) {
|
||||||
|
margin-bottom: var(--spacing-m);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.livestream__comment-create {
|
||||||
|
.comment-create__auth {
|
||||||
|
.MuiAutocomplete-root {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue