From 966343a4d8ce4ae37a2da1c5270754a70f43467a Mon Sep 17 00:00:00 2001 From: c0mrade Date: Thu, 5 Feb 2026 13:36:51 +0300 Subject: [PATCH] fix: restore platform dropdown with SVG icon and widen app chips to match original --- src/pages/Connection.tsx | 102 ++++++++++++++++++++++----------------- 1 file changed, 58 insertions(+), 44 deletions(-) diff --git a/src/pages/Connection.tsx b/src/pages/Connection.tsx index 35cebee..92e3fd2 100644 --- a/src/pages/Connection.tsx +++ b/src/pages/Connection.tsx @@ -445,10 +445,17 @@ export default function Connection() { : undefined; const currentPlatformApps = currentPlatformData ? getRemnawaveApps(currentPlatformData) : []; + // Current platform SVG icon for dropdown + const currentPlatformSvgKey = + currentPlatformData && isRemnawavePlatform(currentPlatformData) + ? currentPlatformData.svgIconKey + : undefined; + const currentPlatformSvg = getSvgHtml(currentPlatformSvgKey); + // Main RemnaWave view — inline app chips + blocks return (
- {/* Header */} + {/* Header + platform dropdown */}
{!isTelegramWebApp && (
- - {/* Platform tabs */} - {availablePlatforms.length > 1 && ( -
- {availablePlatforms.map((p) => { - const isActive = p === currentPlatformKey; - const pData = appConfig.platforms[p]; - const svgIconKey = pData && isRemnawavePlatform(pData) ? pData.svgIconKey : undefined; - const platformSvg = getSvgHtml(svgIconKey); - return ( - - ); - })} -
- )} + + +
+ + )} + {/* App cards row */} {currentPlatformApps.length > 0 && ( -
+
{currentPlatformApps.map((app, idx) => { const isSelected = currentApp?.name === app.name; const appIconSvg = getSvgHtml(app.svgIconKey); @@ -512,17 +526,17 @@ export default function Connection() {