Fix FAB overlapping last entries (#3448)

This commit is contained in:
Alexander Zinchuk 2023-07-05 13:14:56 +02:00
parent 652d68fd35
commit fbbb098a64
5 changed files with 10 additions and 1 deletions

View File

@ -54,6 +54,7 @@ import styles from './CustomEmojiPicker.module.scss';
type OwnProps = {
chatId?: string;
className?: string;
pickerListClassName?: string;
isHidden?: boolean;
loadAndPlay: boolean;
idPrefix?: string;
@ -102,6 +103,7 @@ const STICKER_SET_IDS_WITH_COVER = new Set([
const CustomEmojiPicker: FC<OwnProps & StateProps> = ({
className,
pickerListClassName,
isHidden,
loadAndPlay,
addedCustomEmojiIds,
@ -370,6 +372,7 @@ const CustomEmojiPicker: FC<OwnProps & StateProps> = ({
pickerStyles.main_customEmoji,
'no-selection',
IS_TOUCH_ENV ? 'no-scrollbar' : 'custom-scroll',
pickerListClassName,
);
return (

View File

@ -209,7 +209,7 @@ const SettingsFoldersChatsPicker: FC<OwnProps & StateProps> = ({
/>
</div>
<InfiniteScroll
className="picker-list custom-scroll"
className="picker-list custom-scroll fab-padding-bottom"
itemSelector=".chat-item"
items={viewportIds}
onLoadMore={getMore}

View File

@ -146,6 +146,7 @@ const CreateTopic: FC<OwnProps & StateProps> = ({
loadAndPlay={isActive}
onCustomEmojiSelect={handleCustomEmojiSelect}
className={styles.iconPicker}
pickerListClassName="fab-padding-bottom"
withDefaultTopicIcons
/>
</div>

View File

@ -157,6 +157,7 @@ const EditTopic: FC<OwnProps & StateProps> = ({
loadAndPlay={isActive}
onCustomEmojiSelect={handleCustomEmojiSelect}
className={styles.iconPicker}
pickerListClassName="fab-padding-bottom"
withDefaultTopicIcons
/>
</div>

View File

@ -207,3 +207,7 @@
--color-user: var(--color-deleted-account);
}
}
.fab-padding-bottom {
padding-bottom: 5rem !important;
}