From 0c101a55bfb08ac701c031d9d4bdd01260c11d76 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 3 Nov 2022 15:19:22 -0500 Subject: [PATCH] Limit link table row height --- src/main/resources/public/index.html | 6 ++++++ src/main/resources/public/js/main.js | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/resources/public/index.html b/src/main/resources/public/index.html index 2e68f00..efe57b7 100644 --- a/src/main/resources/public/index.html +++ b/src/main/resources/public/index.html @@ -25,6 +25,12 @@ input { width: 65%; } + + table tr td div { + max-height: 75px; + line-height: 25px; + overflow: scroll; + } diff --git a/src/main/resources/public/js/main.js b/src/main/resources/public/js/main.js index 729ca93..9db802c 100644 --- a/src/main/resources/public/js/main.js +++ b/src/main/resources/public/js/main.js @@ -52,7 +52,9 @@ const deleteButton = (shortUrl) => { const TD = (s) => { const td = document.createElement("td"); - td.innerHTML = s; + const div = document.createElement("div"); + div.innerHTML = s; + td.appendChild(div); return td; };