Reduce content size on mobile when quoting

master
Outrun Colors 2022-09-24 22:47:20 -05:00
parent 5e180fc856
commit eae9fb792c
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
3 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "chat",
"version": "0.0.23",
"version": "0.0.24",
"main": "./src/index.tsx",
"license": "MIT",
"dependencies": {

View File

@ -110,6 +110,10 @@ body {
padding-right: 1rem;
padding-left: 1rem;
}
.App-content__reduced {
height: 58vh;
}
}
lite-youtube {

View File

@ -1,6 +1,7 @@
import React, { useEffect, useRef } from "react";
import { DndProvider, useDrop } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
import cx from "classnames";
import {
ChatHeading,
ChatMessageList,
@ -74,7 +75,12 @@ function AppInner() {
<ChatHeading />
</div>
<div className="App-center">
<div className="App-content" ref={contentWrapper}>
<div
className={cx("App-content", {
"App-content__reduced": quote,
})}
ref={contentWrapper}
>
{open ? (
<div className="App-drawer">{config.content}</div>
) : (