Invoice: Adjust styles (#5728)
This commit is contained in:
parent
26ba41cb4c
commit
1e6d8a1f9f
@ -5,10 +5,20 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
|
|
||||||
|
.description-text {
|
||||||
|
.star-amount-icon {
|
||||||
|
margin-inline-start: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.has-image {
|
&.has-image {
|
||||||
.content-inner:not(.forwarded-message) & {
|
.content-inner:not(.forwarded-message) & {
|
||||||
margin: 0.5rem -0.5rem -0.375rem;
|
margin: 0.5rem -0.5rem -0.375rem;
|
||||||
|
|||||||
@ -96,7 +96,7 @@ const Invoice: FC<OwnProps> = ({
|
|||||||
<p className="title">{renderText(title)}</p>
|
<p className="title">{renderText(title)}</p>
|
||||||
)}
|
)}
|
||||||
{description && (
|
{description && (
|
||||||
<div>{renderText(description, ['emoji', 'br'])}</div>
|
<div className="info">{renderText(description, ['emoji', 'br'])}</div>
|
||||||
)}
|
)}
|
||||||
<div className={`description ${photo ? 'has-image' : ''}`}>
|
<div className={`description ${photo ? 'has-image' : ''}`}>
|
||||||
{Boolean(photo) && (
|
{Boolean(photo) && (
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
.media.no-footer &,
|
.media.no-footer &,
|
||||||
.Message .custom-shape &,
|
.Message .custom-shape &,
|
||||||
.Message .invoice:not(.has-reactions) & {
|
.Message .invoice:not(.has-reactions).has-photo & {
|
||||||
--color-accent-own: white;
|
--color-accent-own: white;
|
||||||
--color-accent: white;
|
--color-accent: white;
|
||||||
color: white !important;
|
color: white !important;
|
||||||
@ -108,7 +108,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.media.no-footer &,
|
.media.no-footer &,
|
||||||
.Message .invoice:not(.has-reactions) & {
|
.Message .invoice:not(.has-reactions).has-photo & {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -148,6 +148,10 @@ export function buildContentClassName(
|
|||||||
classNames.push('invoice');
|
classNames.push('invoice');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (invoice && invoice.photo) {
|
||||||
|
classNames.push('has-photo');
|
||||||
|
}
|
||||||
|
|
||||||
if (storyData) {
|
if (storyData) {
|
||||||
classNames.push('story');
|
classNames.push('story');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user