Star Icon: Fix vertical align (#6688)

This commit is contained in:
Alexander Zinchuk 2026-02-22 23:43:33 +01:00
parent c6d6ae100e
commit fec5e07b7d
5 changed files with 13 additions and 6 deletions

View File

@ -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,

View File

@ -286,6 +286,8 @@
.paymentButtonStar { .paymentButtonStar {
--color-fill: white !important; --color-fill: white !important;
margin-inline-start: 0;
} }
.transactions, .subscriptions { .transactions, .subscriptions {

View File

@ -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,
})} })}

View File

@ -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 {

View File

@ -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 {