mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-05 01:10:49 +00:00
Fix layout issues in MediaGallery
This commit is contained in:
@@ -50,10 +50,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
||||
});
|
||||
|
||||
export function Populated(): JSX.Element {
|
||||
const documents = createRandomDocuments(Date.now() - days(5), days(5)).slice(
|
||||
0,
|
||||
10
|
||||
);
|
||||
const documents = createRandomDocuments(Date.now() - days(5), days(5));
|
||||
const media = createPreparedMediaItems(createRandomMedia);
|
||||
const props = createProps({ documents, media });
|
||||
|
||||
|
||||
@@ -180,8 +180,8 @@ function MediaSection({
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={tw('flex max-w-[660px] min-w-[360px] grow flex-col')}>
|
||||
{sections}
|
||||
<div className={tw('grow', 'mx-auto', 'max-w-[660px] min-w-[360px]')}>
|
||||
<div className={tw('flex flex-col')}>{sections}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -363,7 +363,6 @@ export function MediaGallery({
|
||||
<div
|
||||
className={tw(
|
||||
'grow',
|
||||
'flex flex-col justify-center-safe',
|
||||
'overflow-x-hidden overflow-y-auto',
|
||||
'p-5'
|
||||
)}
|
||||
|
||||
@@ -132,7 +132,7 @@ function createRandomFiles(
|
||||
timeWindow: number,
|
||||
fileExtensions: Array<string>
|
||||
): Array<MediaItemType> {
|
||||
return range(random(5, 10)).map(() =>
|
||||
return range(random(5, 20)).map(() =>
|
||||
createRandomFile(
|
||||
type,
|
||||
startTime,
|
||||
|
||||
Reference in New Issue
Block a user