Star Icon: Fix vertical align (#6688)
This commit is contained in:
parent
c6d6ae100e
commit
fec5e07b7d
@ -289,7 +289,14 @@ function GiftComposer({
|
|||||||
<div className={styles.description}>
|
<div className={styles.description}>
|
||||||
{lang('GiftPremiumDescriptionYourBalance', {
|
{lang('GiftPremiumDescriptionYourBalance', {
|
||||||
stars: formatStarsAsIcon(lang, starBalance.amount, { className: styles.switcherStarIcon }),
|
stars: formatStarsAsIcon(lang, starBalance.amount, { className: styles.switcherStarIcon }),
|
||||||
link: <Link isPrimary onClick={handleGetMoreStars}>{lang('GetMoreStarsLinkText')}</Link>,
|
link: (
|
||||||
|
<Link isPrimary onClick={handleGetMoreStars}>
|
||||||
|
{lang('GetMoreStarsLinkText', undefined, {
|
||||||
|
withNodes: true,
|
||||||
|
specialReplacement: getNextArrowReplacement(),
|
||||||
|
})}
|
||||||
|
</Link>
|
||||||
|
),
|
||||||
}, {
|
}, {
|
||||||
withNodes: true,
|
withNodes: true,
|
||||||
withMarkdown: true,
|
withMarkdown: true,
|
||||||
|
|||||||
@ -286,6 +286,8 @@
|
|||||||
|
|
||||||
.paymentButtonStar {
|
.paymentButtonStar {
|
||||||
--color-fill: white !important;
|
--color-fill: white !important;
|
||||||
|
|
||||||
|
margin-inline-start: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transactions, .subscriptions {
|
.transactions, .subscriptions {
|
||||||
|
|||||||
@ -200,7 +200,7 @@ const StarPaymentModal = ({
|
|||||||
</div>
|
</div>
|
||||||
<Button className={styles.paymentButton} onClick={handlePayment} isLoading={isLoading}>
|
<Button className={styles.paymentButton} onClick={handlePayment} isLoading={isLoading}>
|
||||||
{lang(isBotSubscription ? 'StarsSubscribeBotButtonMonth' : 'StarsPay', {
|
{lang(isBotSubscription ? 'StarsSubscribeBotButtonMonth' : 'StarsPay', {
|
||||||
amount: formatStarsAsIcon(lang, amount!, { asFont: true }),
|
amount: formatStarsAsIcon(lang, amount!, { asFont: true, className: styles.paymentButtonStar }),
|
||||||
}, {
|
}, {
|
||||||
withNodes: true,
|
withNodes: true,
|
||||||
})}
|
})}
|
||||||
|
|||||||
@ -39,9 +39,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.starIcon {
|
.starIcon {
|
||||||
height: 1rem !important;
|
margin-inline-start: 0 !important;
|
||||||
margin-inline-start: 0.125rem !important;
|
|
||||||
line-height: 1rem !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tonInUsdDescription {
|
.tonInUsdDescription {
|
||||||
|
|||||||
@ -358,7 +358,7 @@ body:not(.is-ios) {
|
|||||||
margin-inline-start: 0.375em; // Prevent sticking to the text without using `white-space: pre`
|
margin-inline-start: 0.375em; // Prevent sticking to the text without using `white-space: pre`
|
||||||
margin-inline-end: 0.2em; // Prevent sticking to the text without using `white-space: pre`
|
margin-inline-end: 0.2em; // Prevent sticking to the text without using `white-space: pre`
|
||||||
line-height: inherit; // Vertical centring
|
line-height: inherit; // Vertical centring
|
||||||
vertical-align: text-bottom; // As regular text
|
vertical-align: text-top; // As regular text
|
||||||
}
|
}
|
||||||
|
|
||||||
.next-arrow-icon {
|
.next-arrow-icon {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user