From e2545923aa063686a41dc77f27e42517e332c09f Mon Sep 17 00:00:00 2001
From: Wx-2025 <351320169@qq.com>
Date: Tue, 23 Dec 2025 13:07:04 +0800
Subject: [PATCH] Update fmt.Println message from 'Hello' to 'Goodbye'
---
ui/table-bindings.js | 112 ++++++++++++++++++++++++++++++++++++++++---
1 file changed, 105 insertions(+), 7 deletions(-)
diff --git a/ui/table-bindings.js b/ui/table-bindings.js
index b5e2192..212c9d5 100644
--- a/ui/table-bindings.js
+++ b/ui/table-bindings.js
@@ -376,14 +376,21 @@ export function renderTables() {
}
tableElement.appendChild(colgroup);
+ // Explicitly calculate and set the total table width to override CSS conflicts
let totalWidth = 0;
const cols = colgroup.querySelectorAll('col');
cols.forEach(col => {
totalWidth += parseInt(col.style.width, 10);
});
+ // Set min-width instead of fixed width to allow expansion
tableElement.style.minWidth = '100%';
if (totalWidth > 0) {
+ // Only set explicit width if it exceeds the container (handled by min-width: 100% usually,
+ // but here we set it as a base to ensure columns don't shrink below their defined width)
tableElement.style.width = `${Math.max(totalWidth, 0)}px`;
+ // Actually, to allow full width expansion, we should just use min-width and let CSS handle the rest
+ // unless we want to force scrolling.
+ // Let's try setting min-width to the calculated total, and width to 100%.
tableElement.style.minWidth = `${totalWidth}px`;
tableElement.style.width = '100%';
}
@@ -801,6 +808,12 @@ function openRuleEditor(tableIndex) {
当表格总行数超过设定值时,将在表格底部显示警告。
+