Give chat a min-height that other elements yield to on mobile clients (#2676)

* Add className prop to some components

* Give mobile chatbox height priority over other elements

* Optimize for mobile landscape mode

* Make thumbnail background black

* Fix overflow issues on narrow screens

* Adjust layout for offline mode on mobile

* Fix main content width on Desktop

* Fix offline layout for desktop
This commit is contained in:
Michael David Kuckuk
2023-02-09 03:50:58 +01:00
committed by GitHub
parent c9773091a2
commit 25119561fb
11 changed files with 176 additions and 118 deletions

View File

@@ -8,6 +8,7 @@ export type CrossfadeImageProps = {
height: string;
objectFit?: ObjectFit;
duration?: string;
className?: string;
};
const imgStyle: React.CSSProperties = {
@@ -22,6 +23,7 @@ export const CrossfadeImage: FC<CrossfadeImageProps> = ({
height,
objectFit = 'fill',
duration = '1s',
className,
}) => {
const spanStyle: React.CSSProperties = useMemo(
() => ({
@@ -52,7 +54,7 @@ export const CrossfadeImage: FC<CrossfadeImageProps> = ({
};
return (
<span style={spanStyle}>
<span style={spanStyle} className={className}>
{[...srcs, nextSrc].map(
(singleSrc, index) =>
singleSrc !== '' && (