From 9348a15f6bb25f27e841575d8aa678285425abc1 Mon Sep 17 00:00:00 2001 From: Sucukdeluxe <259325684+Sucukdeluxe@users.noreply.github.com> Date: Sat, 26 Sep 2026 10:19:16 +0200 Subject: [PATCH] Align hoster upload settings and move descriptions into info tooltips --- renderer/app.js | 63 ++++++++++--------------------- renderer/i18n.js | 1 + renderer/styles.css | 92 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 43 deletions(-) diff --git a/renderer/app.js b/renderer/app.js index 0532508..1acf60f 100644 --- a/renderer/app.js +++ b/renderer/app.js @@ -7835,10 +7835,20 @@ async function flushPendingSettingsSaves() { alwaysOnTopState = !!(config.globalSettings && config.globalSettings.alwaysOnTop); } +function infoTipHtml(text) { + return ``; +} + function _buildHosterSettingsHtml(name) { const hs = (config.hosterSettings && config.hosterSettings[name]) || {}; const maxSpeedMbs = hs.maxSpeedKbs > 0 ? String(+(hs.maxSpeedKbs / 1024).toFixed(2)) : '0'; const fieldPrefix = `hoster-${name.replace(/[^a-z0-9]/gi, '-')}`; + const row = (id, label, control, info = '') => `
+
${info ? infoTipHtml(info) : ''}
+ ${control} +
`; + const number = (id, key, value, attributes) => ``; + const checkbox = (id, key, checked) => ``; return `