diff --git a/src/App.js b/src/App.js index 1e2b5dc1..837de405 100644 --- a/src/App.js +++ b/src/App.js @@ -56,10 +56,15 @@ const GlobalStyle = createGlobalStyle` } .enlarged { - max-width: none !important; - max-height: none !important; - width: auto !important; - height: auto !important; + @media (min-width: 480px) { + max-width: none !important; + max-height: none !important; + } + + @media (max-width: 480px) { + max-width: 100% !important; + max-height: 100% !important; + } } `; diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index d5a037f8..8db8dc9e 100644 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -846,14 +846,14 @@ const Board = () => { {thread.link ? (
- {commentMediaInfo?.url ? ( commentMediaInfo.type === "webpage" ? ( {thread.thumbnailUrl ? ( thumbnail e.target.src = fallbackImgUrl} /> ) : null}
{commentMediaInfo?.type}
@@ -862,6 +862,8 @@ const Board = () => { {commentMediaInfo.type} e.target.src = fallbackImgUrl} />
{commentMediaInfo?.type}
@@ -882,7 +884,6 @@ const Board = () => {
) : null ) : null} -
) : null} {thread.content ? ( @@ -983,37 +984,44 @@ const Board = () => { {reply.link ? (
- {replyMediaInfo?.url ? ( replyMediaInfo.type === "webpage" ? ( {reply.thumbnailUrl ? ( - thumbnail e.target.src = fallbackImgUrl} /> + thumbnail e.target.src = fallbackImgUrl} /> ) : null}
{replyMediaInfo.type}
) : replyMediaInfo.type === "image" ? ( - {replyMediaInfo.type} e.target.src = fallbackImgUrl} /> + {replyMediaInfo.type} e.target.src = fallbackImgUrl} />
{replyMediaInfo.type}
) : replyMediaInfo.type === "video" ? ( ) : replyMediaInfo.type === "audio" ? ( - ) : null ) : null} -
) : null} {reply.content ? ( diff --git a/src/components/views/Thread.jsx b/src/components/views/Thread.jsx index 93ba3c10..e20bbb7a 100644 --- a/src/components/views/Thread.jsx +++ b/src/components/views/Thread.jsx @@ -775,7 +775,11 @@ const Thread = () => {
{comment.thumbnailUrl ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {commentMediaInfo.type} e.target.src = fallbackImgUrl} /> ) : null}
{commentMediaInfo.type}
@@ -783,21 +787,29 @@ const Thread = () => { ) : commentMediaInfo.type === "image" ? (
- {commentMediaInfo.type} e.target.src = fallbackImgUrl} /> + {commentMediaInfo.type} e.target.src = fallbackImgUrl} />
{commentMediaInfo.type}
) : commentMediaInfo.type === "video" ? (
-
) : commentMediaInfo.type === "audio" ? (
-
@@ -875,37 +887,44 @@ const Thread = () => {
{reply.link ? (
- {replyMediaInfo?.url ? ( replyMediaInfo.type === "webpage" ? ( {reply.thumbnailUrl ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {replyMediaInfo.type} e.target.src = fallbackImgUrl} /> ) : null}
{replyMediaInfo.type}
) : replyMediaInfo.type === "image" ? ( - {replyMediaInfo.type} e.target.src = fallbackImgUrl} /> + {replyMediaInfo.type} e.target.src = fallbackImgUrl} />
{replyMediaInfo.type}
) : replyMediaInfo.type === "video" ? ( - ) : replyMediaInfo.type === "audio" ? ( - ) : null ) : null} -
) : null}