From 44f325cf6097726932b42c4f1f6db666a04bb777 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Wed, 20 Dec 2023 22:01:50 +0300 Subject: [PATCH] fix: Fix "Show Done" table being too wide for phone displays --- pages/index.html | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/pages/index.html b/pages/index.html index f1b3206..788eb70 100644 --- a/pages/index.html +++ b/pages/index.html @@ -46,21 +46,13 @@ async function displayTodos(showDone) { // Display let timeCreated = new Date(item.timeCreatedUnix * 1000); - if (item.completionTimeUnix != 0) { - let timeDone = new Date(item.completionTimeUnix * 1000); + let timeDone = new Date(item.completionTimeUnix * 1000); + todosDiv.innerHTML += "" + item.text + "" + + "" + " " + timeCreated.getDate() + "/" + (timeCreated.getMonth() + 1) + "/" + timeCreated.getFullYear() + " | " + + timeDone.getDate() + "/" + (timeDone.getMonth() + 1) + "/" + timeDone.getFullYear() + "" + + "" + ""; - todosDiv.innerHTML += "" + item.text + "" + - "" + " " + timeCreated.getDate() + "/" + (timeCreated.getMonth() + 1) + "/" + timeCreated.getFullYear() + "" + - "" + " " + timeDone.getDate() + "/" + (timeDone.getMonth() + 1) + "/" + timeDone.getFullYear() + "" + - "" + ""; - } else { - todosDiv.innerHTML += "" + item.text + "" + - "" + " " + timeCreated.getDate() + "/" + (timeCreated.getMonth() + 1) + "/" + timeCreated.getFullYear() + "" + - "" + - "" + ""; - } todosDisplayed.push({item: item, buttonDel: todoDeleteBtnID});