From 24bb32eb61e8b565cccf60a2b58e4dd089f585aa Mon Sep 17 00:00:00 2001 From: DanS Date: Sun, 5 Jul 2026 12:53:46 -0500 Subject: [PATCH] feat(mining): label the pool fee inline + widen the auto-balance card Each pool row showed " N%" with nothing saying the % is the pool fee. Make it " N% fee" and widen the left auto-balance card (25%/180dp -> 30%/210dp min) so the added text fits. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/ui/windows/mining_stats.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/windows/mining_stats.cpp b/src/ui/windows/mining_stats.cpp index 91e446b..ae734e8 100644 --- a/src/ui/windows/mining_stats.cpp +++ b/src/ui/windows/mining_stats.cpp @@ -315,7 +315,7 @@ static void RenderLeftPoolCard(App* app, const WalletState& state, ImDrawList* d char right[64]; std::string hrStr = haveHr ? FormatHashrate(it->second.hashrateHs) : std::string("—"); - snprintf(right, sizeof(right), "%s %.0f%%", hrStr.c_str(), kp.feePercent); + snprintf(right, sizeof(right), "%s %.0f%% fee", hrStr.c_str(), kp.feePercent); ImVec2 rSz = capFont->CalcTextSizeA(capFont->LegacySize, FLT_MAX, 0, right); cdl->AddText(capFont, capFont->LegacySize, ImVec2(rMax.x - rSz.x - 6 * dp, textY), OnSurfaceMedium(), right); @@ -374,7 +374,8 @@ void RenderMiningStats(const WalletState& state, const MiningInfo& mining, float cardH = std::max(leftContentH, statRowH + chartBudgetH + pad); ImVec2 cardMin = ImGui::GetCursorScreenPos(); - float leftW = std::clamp(availWidth * 0.25f, 180.0f * dp, availWidth * 0.45f); + // A bit wider than the old 25%/180dp so the pool rows fit the " N% fee" text. + float leftW = std::clamp(availWidth * 0.30f, 210.0f * dp, availWidth * 0.45f); float colGap = gap; float rightW = availWidth - leftW - colGap;