From 78deb90485c9574df9ab2cfcd8d9738b6c7bfa0e Mon Sep 17 00:00:00 2001 From: fujr Date: Thu, 19 Dec 2024 16:50:21 +0800 Subject: [PATCH] luci: fix table style for argon theme --- luci/luci-app-qmodem/files/modem_overview.htm | 4 +++- luci/luci-app-qmodem/luasrc/view/qmodem/modem_info.htm | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/luci/luci-app-qmodem/files/modem_overview.htm b/luci/luci-app-qmodem/files/modem_overview.htm index 907c536..835c538 100644 --- a/luci/luci-app-qmodem/files/modem_overview.htm +++ b/luci/luci-app-qmodem/files/modem_overview.htm @@ -6,7 +6,9 @@ } - + .table { + display: table; + } .compat-progressbar { border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color))); diff --git a/luci/luci-app-qmodem/luasrc/view/qmodem/modem_info.htm b/luci/luci-app-qmodem/luasrc/view/qmodem/modem_info.htm index 159da0b..afa8dcd 100644 --- a/luci/luci-app-qmodem/luasrc/view/qmodem/modem_info.htm +++ b/luci/luci-app-qmodem/luasrc/view/qmodem/modem_info.htm @@ -7,7 +7,9 @@ } - + .table { + display: table; + } .compat-progressbar { border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color))); @@ -79,6 +81,7 @@ class LuciTable{ //init table var table = document.createElement('table'); var tbody = document.createElement('tbody'); + tbody.style.width = "100%"; table.className="table" //save this.fieldset = fieldset; @@ -146,6 +149,7 @@ class LuciTable{ row.className = "tr" let cell_left = document.createElement('td'); cell_left.classList.add("td") + cell_left.classList.add("left") cell_left.setAttribute("width","33%") let cell_right = document.createElement('td'); cell_right.classList.add("td")