Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat(league): reiniciar a interface do cliente sem perder a fila (#257)
antonio0969291c8dc8
diff --git a/src-tauri/src/commands/league/mod.rs b/src-tauri/src/commands/league/mod.rsindex 5c7fbf9f..0927417b 100644--- a/src-tauri/src/commands/league/mod.rs+++ b/src-tauri/src/commands/league/mod.rs@@ -296,6 +296,17 @@ pub async fn league_get(path: String) -> Result<Value, String> {lcu_get_raw(&client, &path).await}+/// Restarts only the client's interface process. The classic fix for a client+/// stuck spinning or with a broken window size, and it keeps the queue spot —+/// which is why it is worth offering instead of asking the user to close the game.+#[tauri::command]+pub async fn league_restart_ux() -> Result<(), String> {+ ensure_enabled()?;+ let client = get_client().await?;+ lcu_post_raw(&client, "/riotclient/kill-and-restart-ux").await?;+ Ok(())+}+#[tauri::command]pub async fn league_summoner() -> Result<Value, String> {ensure_enabled()?;diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex 975d1bf2..83ecec8d 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -824,6 +824,7 @@ pub fn run() {commands::league::league_play_again,commands::league::league_champ_select_session,commands::league::league_bench_swap,+ commands::league::league_restart_ux,commands::league::league_reroll,commands::league::league_reroll_keeping_champion,commands::league::league_live_game,diff --git a/src/components/league/HistoryTab.svelte b/src/components/league/HistoryTab.svelteindex 05246c15..61cccb9f 100644--- a/src/components/league/HistoryTab.svelte+++ b/src/components/league/HistoryTab.svelte@@ -4,6 +4,7 @@import timeAgo from "$lib/time-ago";import { CDRAGON, type Champion } from "./shared";import { filterByQueue, queuesInGames, summarise } from "$lib/league-history";+ import { findTeam, teamBans, teamObjectives } from "$lib/league-match-detail";let {games,@@ -163,10 +164,35 @@{:else if gameDetails[game.gameId]}<div class="scoreboard">{#each scoreboardTeams(gameDetails[game.gameId]) as team (team.teamId)}+ {@const objectives = teamObjectives(findTeam(gameDetails[game.gameId]?.teams, team.teamId))}+ {@const bans = teamBans(findTeam(gameDetails[game.gameId]?.teams, team.teamId))}<div class="scoreboard-team"><span class="scoreboard-result" class:win={team.players[0]?.win} class:loss={!team.players[0]?.win}>{team.players[0]?.win ? $t("league.victory") : $t("league.defeat")}</span>+ {#if objectives}+ <div class="objective-line">+ <span>{$t("league.obj_towers")} <strong>{objectives.towers}</strong></span>+ <span>{$t("league.obj_inhibitors")} <strong>{objectives.inhibitors}</strong></span>+ <span>{$t("league.objective_baron")} <strong>{objectives.barons}</strong></span>+ <span>{$t("league.objective_dragon")} <strong>{objectives.dragons}</strong></span>+ <span>{$t("league.obj_heralds")} <strong>{objectives.heralds}</strong></span>+ </div>+ {/if}+ {#if bans.length > 0}+ <div class="ban-line">+ <span class="dim">{$t("league.obj_bans")}</span>+ {#each bans as banId, i (`${banId}-${i}`)}+ <img+ class="champ-icon tiny"+ src={`${CDRAGON}/champion-icons/${banId}.png`}+ alt=""+ title={championById.get(banId)?.name ?? ""}+ loading="lazy"+ />+ {/each}+ </div>+ {/if}{#each team.players as sp (sp.participantId)}<div class="scoreboard-row"><img class="champ-icon tiny" src={`${CDRAGON}/champion-icons/${sp.championId}.png`} alt="" loading="lazy" />diff --git a/src/components/league/OverviewTab.svelte b/src/components/league/OverviewTab.svelteindex 651023c4..4660de12 100644--- a/src/components/league/OverviewTab.svelte+++ b/src/components/league/OverviewTab.svelte@@ -69,6 +69,24 @@};}+ let restartConfirming = $state(false);+ let restartLoading = $state(false);+ let restartError = $state("");++ async function restartClientUx() {+ if (restartLoading) return;+ restartLoading = true;+ restartError = "";+ try {+ await invoke("league_restart_ux");+ } catch (e: any) {+ restartError = typeof e === "string" ? e : (e?.message ?? String(e));+ } finally {+ restartLoading = false;+ restartConfirming = false;+ }+ }+let dodgeConfirming = $state(false);let dodgeLoading = $state(false);let dodgeError = $state("");@@ -117,6 +135,18 @@{#if actionError}<div class="action-error" role="alert">{actionError}</div>{/if}+{#if restartError}+ <div class="action-error" role="alert">{restartError}</div>+{/if}+<div class="repair-row">+ {#if restartConfirming}+ <span class="repair-note">{$t("league.restart_ux_warning")}</span>+ <button class="button" onclick={() => (restartConfirming = false)}>{$t("league.dodge_cancel")}</button>+ <button class="button" onclick={restartClientUx} disabled={restartLoading}>{$t("league.restart_ux_confirm")}</button>+ {:else}+ <button class="button subtle" onclick={() => (restartConfirming = true)}>{$t("league.restart_ux")}</button>+ {/if}+</div>{#if phase === "ChampSelect" && champSelect}<section class="card"><div class="card-head">diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.jsonindex f6c25c83..1fc5aa24 100644--- a/src/lib/i18n/el.json+++ b/src/lib/i18n/el.json@@ -205,6 +205,9 @@"dodge": "Dodge","dodge_warning": "Αν φύγεις τώρα μετράει ως dodge: χάνεις LP και παίρνεις καθυστέρηση ουράς.","dodge_confirm": "Φύγε ούτως ή άλλως",+ "restart_ux": "Επανεκκίνηση διεπαφής πελάτη",+ "restart_ux_warning": "Φορτώνει ξανά τη διεπαφή του client. Η θέση στην ουρά και η επιλογή ηρώων διατηρούνται.",+ "restart_ux_confirm": "Επανεκκίνηση διεπαφής","dodge_cancel": "Μείνε","auto_trade": "Ανταλλαγές ηρώων","auto_trade_desc": "Πώς να απαντώνται τα αιτήματα ανταλλαγής κατά την επιλογή ηρώων.",@@ -222,6 +225,10 @@"seen_before": "ξαναϊδωμένος","seen_before_hint": "Έχεις ξαναπαίξει με ή εναντίον αυτού του παίκτη.","spell_timer_hint": "Κάνε κλικ όταν χρησιμοποιηθεί το ξόρκι για να ξεκινήσει ο χρονομετρητής.",+ "obj_towers": "Πύργοι",+ "obj_inhibitors": "Αναστολείς",+ "obj_heralds": "Heralds",+ "obj_bans": "Bans","match_damage": "ζημιά","match_detail_unavailable": "Οι λεπτομέρειες του αγώνα δεν είναι διαθέσιμες.","pick_list": "Προτεραιότητα pick",diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.jsonindex fe710cbb..383ffae7 100644--- a/src/lib/i18n/en.json+++ b/src/lib/i18n/en.json@@ -223,6 +223,9 @@"dodge": "Dodge","dodge_warning": "Leaving now counts as a dodge: you lose LP and get a queue delay.","dodge_confirm": "Dodge anyway",+ "restart_ux": "Restart client interface",+ "restart_ux_warning": "Reloads the client's interface. Your queue spot and champion select are kept.",+ "restart_ux_confirm": "Restart interface","dodge_cancel": "Stay","auto_trade": "Champion trades","auto_trade_desc": "How to answer trade requests from teammates during champion select.",@@ -240,6 +243,10 @@"seen_before": "seen before","seen_before_hint": "You have played with or against this player before.","spell_timer_hint": "Click when the spell is used to start the timer.",+ "obj_towers": "Towers",+ "obj_inhibitors": "Inhibitors",+ "obj_heralds": "Heralds",+ "obj_bans": "Bans","match_damage": "dmg","match_detail_unavailable": "Match details unavailable.","pick_list": "Pick priority",diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.jsonindex e30c4241..f6824ed5 100644--- a/src/lib/i18n/es.json+++ b/src/lib/i18n/es.json@@ -205,6 +205,9 @@"dodge": "Dodge","dodge_warning": "Salir ahora cuenta como dodge: pierdes PL y recibes retraso de cola.","dodge_confirm": "Salir igualmente",+ "restart_ux": "Reiniciar la interfaz del cliente",+ "restart_ux_warning": "Recarga la interfaz del cliente. Se mantiene tu lugar en la cola y la selección de campeones.",+ "restart_ux_confirm": "Reiniciar interfaz","dodge_cancel": "Quedarme","auto_trade": "Intercambios de campeón","auto_trade_desc": "Cómo responder a las solicitudes de intercambio durante la selección de campeones.",@@ -222,6 +225,10 @@"seen_before": "visto antes","seen_before_hint": "Ya has jugado con o contra este jugador.","spell_timer_hint": "Haz clic cuando use el hechizo para iniciar el temporizador.",+ "obj_towers": "Torres",+ "obj_inhibitors": "Inhibidores",+ "obj_heralds": "Heraldos",+ "obj_bans": "Baneos","match_damage": "daño","match_detail_unavailable": "Detalles de la partida no disponibles.","pick_list": "Prioridad de picks",diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.jsonindex 2cebec33..1b0ce1ac 100644--- a/src/lib/i18n/fr.json+++ b/src/lib/i18n/fr.json@@ -205,6 +205,9 @@"dodge": "Dodge","dodge_warning": "Quitter maintenant compte comme un dodge : perte de PL et délai de file.","dodge_confirm": "Quitter quand même",+ "restart_ux": "Redémarrer l'interface du client",+ "restart_ux_warning": "Recharge l'interface du client. Votre place dans la file et la sélection des champions sont conservées.",+ "restart_ux_confirm": "Redémarrer l'interface","dodge_cancel": "Rester","auto_trade": "Échanges de champions","auto_trade_desc": "Comment répondre aux demandes d'échange pendant la sélection des champions.",@@ -222,6 +225,10 @@"seen_before": "déjà vu","seen_before_hint": "Vous avez déjà joué avec ou contre ce joueur.","spell_timer_hint": "Cliquez quand le sort est utilisé pour lancer le minuteur.",+ "obj_towers": "Tourelles",+ "obj_inhibitors": "Inhibiteurs",+ "obj_heralds": "Hérauts",+ "obj_bans": "Bannissements","match_damage": "dégâts","match_detail_unavailable": "Détails de la partie indisponibles.","pick_list": "Priorité de picks",diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.jsonindex e5231ee8..5e42acec 100644--- a/src/lib/i18n/it.json+++ b/src/lib/i18n/it.json@@ -205,6 +205,9 @@"dodge": "Dodge","dodge_warning": "Uscire ora conta come dodge: perdi PL e subisci un ritardo in coda.","dodge_confirm": "Esci comunque",+ "restart_ux": "Riavvia l'interfaccia del client",+ "restart_ux_warning": "Ricarica l'interfaccia del client. La posizione in coda e la selezione dei campioni vengono mantenute.",+ "restart_ux_confirm": "Riavvia interfaccia","dodge_cancel": "Resta","auto_trade": "Scambi di campioni","auto_trade_desc": "Come rispondere alle richieste di scambio durante la selezione dei campioni.",@@ -222,6 +225,10 @@"seen_before": "già visto","seen_before_hint": "Hai già giocato con o contro questo giocatore.","spell_timer_hint": "Clicca quando l'incantesimo viene usato per avviare il timer.",+ "obj_towers": "Torri",+ "obj_inhibitors": "Inibitori",+ "obj_heralds": "Araldi",+ "obj_bans": "Ban","match_damage": "danni","match_detail_unavailable": "Dettagli della partita non disponibili.","pick_list": "Priorità pick",diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.jsonindex d349cd83..719e5475 100644--- a/src/lib/i18n/ja.json+++ b/src/lib/i18n/ja.json@@ -205,6 +205,9 @@"dodge": "ドッジ","dodge_warning": "今退出するとドッジ扱いになり、LPを失いキュー制限を受けます。","dodge_confirm": "それでも退出",+ "restart_ux": "クライアントのUIを再起動",+ "restart_ux_warning": "クライアントのUIを再読み込みします。キューの順番とチャンピオン選択は保持されます。",+ "restart_ux_confirm": "UIを再起動","dodge_cancel": "残る","auto_trade": "チャンピオン交換","auto_trade_desc": "チャンピオン選択中の交換リクエストへの対応方法。",@@ -222,6 +225,10 @@"seen_before": "遭遇済み","seen_before_hint": "このプレイヤーとは以前に対戦または協力したことがあります。","spell_timer_hint": "スペルが使われたらクリックしてタイマーを開始。",+ "obj_towers": "タワー",+ "obj_inhibitors": "インヒビター",+ "obj_heralds": "ヘラルド",+ "obj_bans": "BAN","match_damage": "ダメージ","match_detail_unavailable": "試合の詳細を取得できません。","pick_list": "ピック優先度",diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.tsindex 80ef3b00..08349a5d 100644--- a/src/lib/i18n/keys.ts+++ b/src/lib/i18n/keys.ts@@ -500,6 +500,10 @@ export type TranslationKeys =| 'league.nav'| 'league.notify_ready'| 'league.notify_ready_desc'+ | 'league.obj_bans'+ | 'league.obj_heralds'+ | 'league.obj_inhibitors'+ | 'league.obj_towers'| 'league.objective_baron'| 'league.objective_dragon'| 'league.objective_inhibitor'@@ -534,6 +538,9 @@ export type TranslationKeys =| 'league.reroll_keep'| 'league.reroll_keep_hint'| 'league.respawn_in'+ | 'league.restart_ux'+ | 'league.restart_ux_confirm'+ | 'league.restart_ux_warning'| 'league.role_bottom'| 'league.role_jungle'| 'league.role_middle'diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.jsonindex 3033568a..f88ee6b3 100644--- a/src/lib/i18n/pt.json+++ b/src/lib/i18n/pt.json@@ -205,6 +205,9 @@"dodge": "Dodge","dodge_warning": "Sair agora conta como dodge: você perde PDL e pega atraso de fila.","dodge_confirm": "Sair mesmo assim",+ "restart_ux": "Reiniciar a interface do cliente",+ "restart_ux_warning": "Recarrega a interface do cliente. Sua posição na fila e a seleção de campeões são preservadas.",+ "restart_ux_confirm": "Reiniciar interface","dodge_cancel": "Ficar","auto_trade": "Trocas de campeão","auto_trade_desc": "Como responder pedidos de troca dos colegas durante a seleção de campeões.",@@ -222,6 +225,10 @@"seen_before": "já visto","seen_before_hint": "Você já jogou com ou contra este jogador antes.","spell_timer_hint": "Clique quando o feitiço for usado para iniciar o timer.",+ "obj_towers": "Torres",+ "obj_inhibitors": "Inibidores",+ "obj_heralds": "Arautos",+ "obj_bans": "Bans","match_damage": "dano","match_detail_unavailable": "Detalhes da partida indisponíveis.","pick_list": "Prioridade de pick",diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.jsonindex b7bcd7e3..ae0d8577 100644--- a/src/lib/i18n/ru.json+++ b/src/lib/i18n/ru.json@@ -205,6 +205,9 @@"dodge": "Додж","dodge_warning": "Выход сейчас считается доджем: вы потеряете LP и получите задержку очереди.","dodge_confirm": "Всё равно выйти",+ "restart_ux": "Перезапустить интерфейс клиента",+ "restart_ux_warning": "Перезагружает интерфейс клиента. Место в очереди и выбор чемпионов сохраняются.",+ "restart_ux_confirm": "Перезапустить интерфейс","dodge_cancel": "Остаться","auto_trade": "Обмены чемпионами","auto_trade_desc": "Как отвечать на запросы обмена во время выбора чемпионов.",@@ -222,6 +225,10 @@"seen_before": "уже встречался","seen_before_hint": "Вы уже играли с этим игроком или против него.","spell_timer_hint": "Нажмите, когда заклинание использовано, чтобы запустить таймер.",+ "obj_towers": "Башни",+ "obj_inhibitors": "Ингибиторы",+ "obj_heralds": "Вестники",+ "obj_bans": "Баны","match_damage": "урон","match_detail_unavailable": "Детали матча недоступны.","pick_list": "Приоритет пиков",diff --git a/src/lib/i18n/zh-TW.json b/src/lib/i18n/zh-TW.jsonindex 2488a1bf..32c7a993 100644--- a/src/lib/i18n/zh-TW.json+++ b/src/lib/i18n/zh-TW.json@@ -205,6 +205,9 @@"dodge": "閃退","dodge_warning": "現在退出將視為閃退:你會失去積分並受到排隊延遲。","dodge_confirm": "仍要退出",+ "restart_ux": "重啟客戶端介面",+ "restart_ux_warning": "重新載入客戶端介面。你的排隊位置與英雄選擇會保留。",+ "restart_ux_confirm": "重啟介面","dodge_cancel": "留下","auto_trade": "英雄交換","auto_trade_desc": "如何回應選角階段隊友的交換請求。",@@ -222,6 +225,10 @@"seen_before": "遇過","seen_before_hint": "你之前與該玩家同隊或對戰過。","spell_timer_hint": "對方使用召喚師技能時點擊開始計時。",+ "obj_towers": "防禦塔",+ "obj_inhibitors": "水晶兵營",+ "obj_heralds": "峽谷先鋒",+ "obj_bans": "禁用","match_damage": "傷害","match_detail_unavailable": "無法取得對局詳情。","pick_list": "選角優先序",diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.jsonindex f5faae95..967f950a 100644--- a/src/lib/i18n/zh.json+++ b/src/lib/i18n/zh.json@@ -205,6 +205,9 @@"dodge": "秒退","dodge_warning": "现在退出将视为秒退:你会扣除胜点并受到排队惩罚。","dodge_confirm": "仍要退出",+ "restart_ux": "重启客户端界面",+ "restart_ux_warning": "重新加载客户端界面。你的排队位置和英雄选择会保留。",+ "restart_ux_confirm": "重启界面","dodge_cancel": "留下","auto_trade": "英雄交换","auto_trade_desc": "如何回应选人阶段队友的交换请求。",@@ -222,6 +225,10 @@"seen_before": "遇到过","seen_before_hint": "你之前与该玩家同队或对阵过。","spell_timer_hint": "对方使用召唤师技能时点击开始计时。",+ "obj_towers": "防御塔",+ "obj_inhibitors": "水晶兵营",+ "obj_heralds": "峡谷先锋",+ "obj_bans": "禁用","match_damage": "伤害","match_detail_unavailable": "无法获取对局详情。","pick_list": "选用优先级",diff --git a/src/lib/league-match-detail.test.ts b/src/lib/league-match-detail.test.tsnew file mode 100644index 00000000..23c555f7--- /dev/null+++ b/src/lib/league-match-detail.test.ts@@ -0,0 +1,71 @@+import { describe, it, expect } from "vitest";+import { findTeam, teamBans, teamObjectives } from "./league-match-detail";++const blue = {+ teamId: 100,+ towerKills: 9,+ inhibitorKills: 2,+ baronKills: 1,+ dragonKills: 3,+ riftHeraldKills: 1,+ bans: [+ { championId: 55, pickTurn: 3 },+ { championId: 22, pickTurn: 1 },+ { championId: -1, pickTurn: 5 },+ ],+};++describe("teamObjectives", () => {+ it("reads every objective count", () => {+ expect(teamObjectives(blue)).toEqual({+ teamId: 100,+ towers: 9,+ inhibitors: 2,+ barons: 1,+ dragons: 3,+ heralds: 1,+ });+ });++ it("treats missing counts as zero rather than blank", () => {+ expect(teamObjectives({ teamId: 200 })).toEqual({+ teamId: 200,+ towers: 0,+ inhibitors: 0,+ barons: 0,+ dragons: 0,+ heralds: 0,+ });+ });++ it("returns nothing for a team without an id", () => {+ expect(teamObjectives(undefined)).toBeNull();+ expect(teamObjectives({})).toBeNull();+ });+});++describe("teamBans", () => {+ it("orders by pick turn and drops empty bans", () => {+ expect(teamBans(blue)).toEqual([22, 55]);+ });++ it("handles a team that banned nothing", () => {+ expect(teamBans({ teamId: 100 })).toEqual([]);+ expect(teamBans({ teamId: 100, bans: [] })).toEqual([]);+ expect(teamBans(undefined)).toEqual([]);+ });++ it("does not mutate the source array", () => {+ const team = { teamId: 100, bans: [{ championId: 2, pickTurn: 2 }, { championId: 1, pickTurn: 1 }] };+ teamBans(team);+ expect(team.bans[0].championId).toBe(2);+ });+});++describe("findTeam", () => {+ it("finds by id and tolerates missing data", () => {+ expect(findTeam([blue], 100)).toBe(blue);+ expect(findTeam([blue], 200)).toBeUndefined();+ expect(findTeam(undefined, 100)).toBeUndefined();+ });+});diff --git a/src/lib/league-match-detail.ts b/src/lib/league-match-detail.tsnew file mode 100644index 00000000..fc8f183f--- /dev/null+++ b/src/lib/league-match-detail.ts@@ -0,0 +1,46 @@+export type MatchTeam = {+ teamId?: number;+ towerKills?: number;+ inhibitorKills?: number;+ baronKills?: number;+ dragonKills?: number;+ riftHeraldKills?: number;+ bans?: { championId?: number; pickTurn?: number }[];+};++export type TeamObjectives = {+ teamId: number;+ towers: number;+ inhibitors: number;+ barons: number;+ dragons: number;+ heralds: number;+};++/// Objective counts as the match detail reports them. A team with no objective at+/// all is still returned, because "zero towers" is information.+export function teamObjectives(team: MatchTeam | undefined): TeamObjectives | null {+ if (!team || typeof team.teamId !== "number") return null;+ return {+ teamId: team.teamId,+ towers: team.towerKills ?? 0,+ inhibitors: team.inhibitorKills ?? 0,+ barons: team.baronKills ?? 0,+ dragons: team.dragonKills ?? 0,+ heralds: team.riftHeraldKills ?? 0,+ };+}++/// Bans in the order they were made. Entries with no champion are the empty bans+/// the client reports as -1 when a player let the timer run out.+export function teamBans(team: MatchTeam | undefined): number[] {+ return (team?.bans ?? [])+ .slice()+ .sort((a, b) => (a.pickTurn ?? 0) - (b.pickTurn ?? 0))+ .map((ban) => ban.championId ?? -1)+ .filter((id) => id > 0);+}++export function findTeam(teams: readonly MatchTeam[] | undefined, teamId: number): MatchTeam | undefined {+ return (teams ?? []).find((team) => team.teamId === teamId);+}diff --git a/src/routes/league/+page.svelte b/src/routes/league/+page.svelteindex 180721cd..45441c90 100644--- a/src/routes/league/+page.svelte+++ b/src/routes/league/+page.svelte@@ -1912,6 +1912,48 @@border-color: transparent;}+ .league-page :global(.button.subtle) {+ color: var(--text-secondary);+ background: transparent;+ }++ .league-page :global(.button.subtle:hover) {+ color: var(--text);+ background: var(--surface-hover);+ }++ .league-page :global(.objective-line) {+ display: flex;+ gap: 12px;+ flex-wrap: wrap;+ font-size: 11.5px;+ color: var(--text-secondary);+ margin: 4px 0;+ }++ .league-page :global(.ban-line) {+ display: flex;+ align-items: center;+ gap: 4px;+ flex-wrap: wrap;+ font-size: 11.5px;+ margin-bottom: 6px;+ }++ .league-page :global(.repair-row) {+ display: flex;+ align-items: center;+ justify-content: flex-end;+ gap: 8px;+ flex-wrap: wrap;+ margin-bottom: 10px;+ }++ .league-page :global(.repair-note) {+ font-size: 12px;+ color: var(--text-secondary);+ }+.league-page :global(.button.subtle-danger) {color: var(--danger);border-color: color-mix(in oklab, var(--danger) 35%, transparent);