Seen By Modal: UI improvements (#3150)
This commit is contained in:
parent
cc0e00ad2d
commit
faff69a39e
3
src/components/common/SeenByModal.module.scss
Normal file
3
src/components/common/SeenByModal.module.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.modal :global(.modal-content) {
|
||||||
|
padding: 0.5rem !important;
|
||||||
|
}
|
||||||
@ -3,6 +3,7 @@ import { getActions, withGlobal } from '../../global';
|
|||||||
|
|
||||||
import { selectChatMessage, selectTabState } from '../../global/selectors';
|
import { selectChatMessage, selectTabState } from '../../global/selectors';
|
||||||
import { formatDateAtTime } from '../../util/dateFormat';
|
import { formatDateAtTime } from '../../util/dateFormat';
|
||||||
|
import buildClassName from '../../util/buildClassName';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
|
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
|
||||||
|
|
||||||
@ -11,6 +12,8 @@ import Button from '../ui/Button';
|
|||||||
import PrivateChatInfo from './PrivateChatInfo';
|
import PrivateChatInfo from './PrivateChatInfo';
|
||||||
import ListItem from '../ui/ListItem';
|
import ListItem from '../ui/ListItem';
|
||||||
|
|
||||||
|
import styles from './SeenByModal.module.scss';
|
||||||
|
|
||||||
export type OwnProps = {
|
export type OwnProps = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
};
|
};
|
||||||
@ -60,7 +63,7 @@ function SeenByModal({
|
|||||||
<Modal
|
<Modal
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onClose={closeSeenByModal}
|
onClose={closeSeenByModal}
|
||||||
className="narrow"
|
className={buildClassName(styles.modal, 'narrow')}
|
||||||
title={`Seen by ${memberIds?.length} users`}
|
title={`Seen by ${memberIds?.length} users`}
|
||||||
>
|
>
|
||||||
<div dir={lang.isRtl ? 'rtl' : undefined}>
|
<div dir={lang.isRtl ? 'rtl' : undefined}>
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
height: min(92vh, 32rem);
|
height: min(92vh, 32rem);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding: 0.5rem 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reactor-list-wrapper {
|
.reactor-list-wrapper {
|
||||||
@ -17,6 +18,7 @@
|
|||||||
|
|
||||||
.confirm-dialog-button {
|
.confirm-dialog-button {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
|
margin: 0 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Reactions {
|
.Reactions {
|
||||||
@ -37,6 +39,7 @@
|
|||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
padding: 0 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reactors-list-item {
|
.reactors-list-item {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user