fix position media in wrapper

This commit is contained in:
plebeius.eth
2023-08-24 10:50:40 +02:00
parent ca794d6107
commit af46da2f83
3 changed files with 24 additions and 10 deletions
+18 -8
View File
@@ -1906,6 +1906,9 @@ export const BoardForm = styled.div`
float: left; float: left;
margin: 3px 20px 5px 20px; margin: 3px 20px 5px 20px;
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
display: flex;
justify-content: center;
align-items: center;
} }
.reply-file-text { .reply-file-text {
@@ -1914,17 +1917,25 @@ export const BoardForm = styled.div`
margin-left: 5px; margin-left: 5px;
} }
.file-thumb-reply { .file-thumb-reply,
.file-thumb-mobile {
display: flex;
justify-content: center;
align-items: center;
float: left; float: left;
}
.file-thumb-reply {
margin: 3px 20px 5px 20px; margin: 3px 20px 5px 20px;
} }
.file-thumb img, .file-thumb img,
.file-thumb video, .file-thumb video,
.file-thumb audio { .file-thumb audio {
border: none; border: none;
max-width: 250px; max-width: 250px;
max-height: 250px; max-height: 250px;
margin: 0;
} }
.file-thumb-reply img, .file-thumb-reply img,
@@ -1933,7 +1944,6 @@ export const BoardForm = styled.div`
max-width: 125px; max-width: 125px;
max-height: 125px; max-height: 125px;
} }
} }
.thread-mobile { .thread-mobile {
@@ -1996,16 +2006,16 @@ export const BoardForm = styled.div`
.file-mobile { .file-mobile {
display: block; display: block;
.file-thumb-mobile { .file-thumb-mobile {
margin-left: 10px !important; margin-left: 10px !important;
margin-right: 10px !important; margin-right: 10px !important;
text-decoration: none; text-decoration: none;
float: left; float: left;
margin-bottom: 5px; margin-bottom: 5% !important;
margin-top: 15px; margin-top: 15px !important;
} }
.file-info-mobile { .file-info-mobile {
padding-top: 5px; padding-top: 5px;
text-align: center; text-align: center;
@@ -2013,7 +2023,6 @@ export const BoardForm = styled.div`
display: block !important; display: block !important;
clear: left !important; clear: left !important;
} }
} }
video { video {
@@ -2036,6 +2045,7 @@ export const BoardForm = styled.div`
max-width: 100px; max-width: 100px;
max-height: 100px; max-height: 100px;
object-fit: scale-down; object-fit: scale-down;
margin: 0;
} }
blockquote { blockquote {
@@ -64,13 +64,17 @@ export const Threads = styled.div`
.file-thumb { .file-thumb {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
display: inline-block; display: inline-block;
text-align: center;
line-height: 150px;
margin-bottom: 5px;
} }
.card { .card {
display: inline; display: inline-block;
margin: auto; margin: auto;
box-shadow: 0 0 5px rgba(0, 0, 0, .25); box-shadow: 0 0 5px rgba(0, 0, 0, .25);
border: 0; border: 0;
vertical-align: middle;
} }
.thread-icons { .thread-icons {
+1 -1
View File
@@ -453,7 +453,7 @@ const CatalogPost = ({post}) => {
</div> </div>
) : null} ) : null}
<BoardForm selectedStyle={selectedStyle} style={{all: 'unset'}}> <BoardForm selectedStyle={selectedStyle} style={{all: 'unset'}}>
<div className='meta' title="(R)eplies / (L)ink Replies"> <div style={{marginTop: '5px'}} className='meta' title="(R)eplies / (L)ink Replies">
R:&nbsp;<b>0</b>&nbsp;/&nbsp;L:&nbsp;<b>0</b> R:&nbsp;<b>0</b>&nbsp;/&nbsp;L:&nbsp;<b>0</b>
{subplebbit.suggested?.avatarUrl ? null : ( {subplebbit.suggested?.avatarUrl ? null : (
<div className='thread-icons' <div className='thread-icons'