Web Page: Change photo preview position (#5308)
This commit is contained in:
parent
9c635ae7e6
commit
dd8bf46e92
@ -72,6 +72,7 @@
|
|||||||
.WebPage--content {
|
.WebPage--content {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-inline-start: 0.375rem;
|
margin-inline-start: 0.375rem;
|
||||||
|
margin-inline-end: 0.25rem;
|
||||||
|
|
||||||
&.is-story {
|
&.is-story {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -108,6 +109,7 @@
|
|||||||
|
|
||||||
.media-inner {
|
.media-inner {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
margin-block: 0.25rem !important;
|
||||||
|
|
||||||
&,
|
&,
|
||||||
& img,
|
& img,
|
||||||
|
|||||||
@ -194,6 +194,17 @@ const WebPage: FC<OwnProps> = ({
|
|||||||
{isStory && (
|
{isStory && (
|
||||||
<BaseStory story={story} isProtected={isProtected} isConnected={isConnected} isPreview />
|
<BaseStory story={story} isProtected={isProtected} isConnected={isConnected} isPreview />
|
||||||
)}
|
)}
|
||||||
|
{isArticle && (
|
||||||
|
<div className="WebPage-text">
|
||||||
|
<SafeLink className="site-name" url={url} text={siteName || displayUrl} />
|
||||||
|
{!inPreview && title && (
|
||||||
|
<p className="site-title">{renderText(title)}</p>
|
||||||
|
)}
|
||||||
|
{truncatedDescription && (
|
||||||
|
<p className="site-description">{renderText(truncatedDescription, ['emoji', 'br'])}</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{photo && !video && !document && (
|
{photo && !video && !document && (
|
||||||
<Photo
|
<Photo
|
||||||
photo={photo}
|
photo={photo}
|
||||||
@ -212,17 +223,6 @@ const WebPage: FC<OwnProps> = ({
|
|||||||
onCancelUpload={onCancelMediaTransfer}
|
onCancelUpload={onCancelMediaTransfer}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{isArticle && (
|
|
||||||
<div className="WebPage-text">
|
|
||||||
<SafeLink className="site-name" url={url} text={siteName || displayUrl} />
|
|
||||||
{!inPreview && title && (
|
|
||||||
<p className="site-title">{renderText(title)}</p>
|
|
||||||
)}
|
|
||||||
{truncatedDescription && (
|
|
||||||
<p className="site-description">{renderText(truncatedDescription, ['emoji', 'br'])}</p>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{!inPreview && video && (
|
{!inPreview && video && (
|
||||||
<Video
|
<Video
|
||||||
video={video}
|
video={video}
|
||||||
|
|||||||
@ -622,6 +622,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message-content:not(.web-page).media {
|
||||||
|
// Moved below `.has-subheader` to overwrite its styles
|
||||||
|
&.is-inverted-media.has-fact-check .media-inner:not(.file-preview),
|
||||||
|
&.is-inverted-media.has-fact-check .Album,
|
||||||
|
&.text:not(.is-inverted-media) .media-inner:not(.file-preview),
|
||||||
|
&.text:not(.is-inverted-media) .Album {
|
||||||
|
margin-bottom: 0.375rem !important;
|
||||||
|
|
||||||
|
body.is-ios .Message.own & {
|
||||||
|
margin-bottom: 0.375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.message-content.media,
|
.message-content.media,
|
||||||
.WebPage:not(.with-document) {
|
.WebPage:not(.with-document) {
|
||||||
.media-inner {
|
.media-inner {
|
||||||
@ -696,18 +710,6 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moved below `.has-subheader` to overwrite its styles
|
|
||||||
&.is-inverted-media.has-fact-check .media-inner:not(.file-preview),
|
|
||||||
&.is-inverted-media.has-fact-check .Album,
|
|
||||||
&.text:not(.is-inverted-media) .media-inner:not(.file-preview),
|
|
||||||
&.text:not(.is-inverted-media) .Album {
|
|
||||||
margin-bottom: 0.375rem !important;
|
|
||||||
|
|
||||||
body.is-ios .Message.own & {
|
|
||||||
margin-bottom: 0.375rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-loading {
|
.media-loading {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user