From 43ab114e1aa251ed10bd9ff1be9284e74721e03a Mon Sep 17 00:00:00 2001 From: Alex Danamir Date: Wed, 22 May 2024 13:42:52 +0300 Subject: [PATCH] fixed table --- static/css/index.css | 14 ++++++++++++-- static/js/allmatc.js | 2 +- templates/all.html | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/static/css/index.css b/static/css/index.css index 3e00e63..9a5b0ea 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -82,9 +82,15 @@ table{ word-break: break-all; border-collapse: separate!important; } -td{ + +.table td{ + font-size: 14px; padding: 0; + max-width: 10rem; + word-break: break-all; + border-collapse: separate!important; } + .aud{ width: 110px; } @@ -94,8 +100,9 @@ td{ } .rasp{ - max-width: 200px; + width: 200px; word-break: break-word; + white-space: nowrap; } #modal_matcenn{ @@ -108,7 +115,10 @@ td{ } +.datatable th:nth-child(7) { + width: 200px; +} diff --git a/static/js/allmatc.js b/static/js/allmatc.js index 58551c0..1477f10 100644 --- a/static/js/allmatc.js +++ b/static/js/allmatc.js @@ -10,7 +10,7 @@ function clearTable() { function getAllData() { - console.log('12321321') + clearTable(); let tableBody = document.getElementById('alldatatable').getElementsByTagName("tbody")[0]; diff --git a/templates/all.html b/templates/all.html index e0c36de..50bd2ac 100644 --- a/templates/all.html +++ b/templates/all.html @@ -137,7 +137,7 @@ - +