From 3eeaa7a7b23c060efbd2f05efcdf63cf9ecd7e81 Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 26 Feb 2026 02:26:43 +0700 Subject: [PATCH] Fix horizontal scrolling in transaction list with overflow-hidden --- src/popup/views/addressDetail.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/popup/views/addressDetail.js b/src/popup/views/addressDetail.js index bfe765f..8e7d462 100644 --- a/src/popup/views/addressDetail.js +++ b/src/popup/views/addressDetail.js @@ -107,7 +107,7 @@ function renderTransactions(txs) { const row = document.createElement("div"); row.className = - "py-2 border-b border-border-light text-xs cursor-pointer hover:bg-hover"; + "py-2 border-b border-border-light text-xs cursor-pointer hover:bg-hover overflow-hidden"; if (errorStyle) row.style.cssText = errorStyle; const line1 = document.createElement("div"); @@ -124,9 +124,9 @@ function renderTransactions(txs) { const amountStr = tx.value + " " + tx.symbol; const line2 = document.createElement("div"); - line2.className = "flex justify-between"; + line2.className = "flex justify-between min-w-0"; const addr = document.createElement("span"); - addr.className = "pr-2"; + addr.className = "pr-2 overflow-hidden"; const maxAddr = Math.max(10, 38 - Math.max(0, amountStr.length - 10)); addr.textContent = truncateMiddle(counterparty, maxAddr); addr.title = counterparty;