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}>
{lang('GiftPremiumDescriptionYourBalance', {
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,
withMarkdown: true,

View File

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

View File

@ -200,7 +200,7 @@ const StarPaymentModal = ({
</div>
<Button className={styles.paymentButton} onClick={handlePayment} isLoading={isLoading}>
{lang(isBotSubscription ? 'StarsSubscribeBotButtonMonth' : 'StarsPay', {
amount: formatStarsAsIcon(lang, amount!, { asFont: true }),
amount: formatStarsAsIcon(lang, amount!, { asFont: true, className: styles.paymentButtonStar }),
}, {
withNodes: true,
})}

View File

@ -39,9 +39,7 @@
}
.starIcon {
height: 1rem !important;
margin-inline-start: 0.125rem !important;
line-height: 1rem !important;
margin-inline-start: 0 !important;
}
.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-end: 0.2em; // Prevent sticking to the text without using `white-space: pre`
line-height: inherit; // Vertical centring
vertical-align: text-bottom; // As regular text
vertical-align: text-top; // As regular text
}
.next-arrow-icon {