Embed: resize "ended message" based on container height

This commit is contained in:
infinite-persistence 2021-09-21 16:23:37 +08:00 committed by zeppi
parent 9ec5a7c298
commit b42e882a02
2 changed files with 8 additions and 2 deletions

View file

@ -196,8 +196,12 @@
}
.file-viewer_embed-ended-title {
max-width: 100%;
p {
font-size: 6vh;
white-space: pre-wrap;
}
}
.content__viewer--floating {
.file-viewer__overlay-title,

View file

@ -46,7 +46,9 @@ function FileViewerEmbeddedEnded(props: Props) {
</div>
{!preferEmbed && (
<>
<div className="file-viewer__overlay-title file-viewer_embed-ended-title">{prompt}</div>
<div className="file-viewer__overlay-title file-viewer_embed-ended-title">
<p>{prompt}</p>
</div>
<div className="file-viewer__overlay-actions">
<>
{showReplay && (