Sticker Set Modal: Fix extra space for content (#2984)

This commit is contained in:
Alexander Zinchuk 2023-04-15 13:51:32 +02:00
parent a27ec8243b
commit 7e3a6507dc
2 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,12 @@
.StickerSetModal {
&.custom-emoji {
--emoji-size: 2.25rem;
.stickers {
padding: 0 0.5rem;
}
}
.modal-dialog {
width: 26.25rem;
max-width: 100%;
@ -16,7 +24,7 @@
.modal-content {
text-align: center;
padding: 0;
padding: 0 !important;
}
.stickers {

View File

@ -18,6 +18,7 @@ import {
import renderText from './helpers/renderText';
import { copyTextToClipboard } from '../../util/clipboard';
import { getAllowedAttachmentOptions, getCanPostInChat } from '../../global/helpers';
import buildClassName from '../../util/buildClassName';
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
import useLang from '../../hooks/useLang';
@ -187,7 +188,7 @@ const StickerSetModal: FC<OwnProps & StateProps> = ({
return (
<Modal
className="StickerSetModal"
className={buildClassName('StickerSetModal', isEmoji && 'custom-emoji')}
isOpen={isOpen}
onClose={onClose}
header={renderHeader()}