mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add mobile button styling
This commit is contained in:
@@ -4,14 +4,6 @@
|
|||||||
filter: var(--filter80);
|
filter: var(--filter80);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
|
||||||
color: var(--text-info);
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 0 4px 0 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
z-index: 7;
|
z-index: 7;
|
||||||
background-color: var(--challenge-modal-background-color);
|
background-color: var(--challenge-modal-background-color);
|
||||||
@@ -74,8 +66,6 @@
|
|||||||
|
|
||||||
.bottom button {
|
.bottom button {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
cursor: pointer;
|
|
||||||
padding: 2px 6px 3px;
|
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
@@ -90,6 +80,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.bottom button {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 2px 6px 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.checkbox {
|
.checkbox {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import styles from './edit-menu.module.css';
|
|||||||
import { alertChallengeVerificationFailed } from '../../../lib/utils/challenge-utils';
|
import { alertChallengeVerificationFailed } from '../../../lib/utils/challenge-utils';
|
||||||
import useChallengesStore from '../../../stores/use-challenges-store';
|
import useChallengesStore from '../../../stores/use-challenges-store';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
import useIsMobile from '../../../hooks/use-is-mobile';
|
||||||
|
|
||||||
const { addChallenge } = useChallengesStore.getState();
|
const { addChallenge } = useChallengesStore.getState();
|
||||||
|
|
||||||
@@ -18,6 +19,7 @@ type EditMenuProps = {
|
|||||||
|
|
||||||
const EditMenu = ({ commentCid, isAccountMod, isAccountCommentAuthor, isCommentAuthorMod }: EditMenuProps) => {
|
const EditMenu = ({ commentCid, isAccountMod, isAccountCommentAuthor, isCommentAuthorMod }: EditMenuProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const isMobile = useIsMobile();
|
||||||
let post: any;
|
let post: any;
|
||||||
const comment = useComment({ commentCid });
|
const comment = useComment({ commentCid });
|
||||||
const { editedComment } = useEditedComment({ comment });
|
const { editedComment } = useEditedComment({ comment });
|
||||||
@@ -222,7 +224,9 @@ const EditMenu = ({ commentCid, isAccountMod, isAccountCommentAuthor, isCommentA
|
|||||||
<input type='text' onChange={onReason} defaultValue={post?.reason} size={14} />
|
<input type='text' onChange={onReason} defaultValue={post?.reason} size={14} />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.bottom}>
|
<div className={styles.bottom}>
|
||||||
<button onClick={_publishCommentEdit}>{t('save')}</button>
|
<button className={isMobile ? 'button' : ''} onClick={_publishCommentEdit}>
|
||||||
|
{t('save')}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user