fix(cabinet): Lava top-up return route + Telegram-unavailable card overflow

- Lava returns to a path-based result URL (/balance/top-up/result/:method) because Lava
  Business rejects query strings in success/fail URLs. Add the route and read the method
  from the path param as a fallback (alongside ?method=) so external-browser redirects
  still poll the right payment. Pairs with the backend fix.
- ConnectedAccounts: the "Привязка Telegram временно недоступна" message overflowed the
  card (it sat in the non-shrinking action column and never wrapped). Constrain its width
  and wrap it (max-w + break-words) so it stays inside the card. Verified by rendering.

Both reported in the Bedolaga bug topic.
This commit is contained in:
c0mrade
2026-06-10 16:44:46 +03:00
parent 16fad9f4fe
commit d7f7bc7c17
3 changed files with 23 additions and 6 deletions

View File

@@ -240,13 +240,15 @@ function TelegramLinkWidget() {
// Script failed to load - show unavailable message with bot link
if (scriptFailed) {
return (
<div className="flex flex-col items-center gap-1.5">
<p className="text-xs text-dark-400">{t('profile.accounts.telegramLinkUnavailable')}</p>
<div className="flex max-w-[200px] flex-col items-center gap-1.5">
<p className="break-words text-center text-xs text-dark-400">
{t('profile.accounts.telegramLinkUnavailable')}
</p>
<a
href={`https://t.me/${botUsername}`}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-accent-400 transition-colors hover:text-accent-300"
className="break-all text-sm text-accent-400 transition-colors hover:text-accent-300"
>
@{botUsername}
</a>