From b384db3abe85e05edfdb00a1e2d37dd71ca0ab02 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 12 Feb 2024 18:02:25 +0100 Subject: [PATCH] move location pin in the date row --- themes/hugo-theme-flat/static/css/style.css | 2 +- themes/hugo-theme-flat/static/js/calendar.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/hugo-theme-flat/static/css/style.css b/themes/hugo-theme-flat/static/css/style.css index a65b9ba..6d6599a 100644 --- a/themes/hugo-theme-flat/static/css/style.css +++ b/themes/hugo-theme-flat/static/css/style.css @@ -212,7 +212,7 @@ a.external:after { margin-bottom: 0; } -#calendar span { +#calendar .row { display: block; } diff --git a/themes/hugo-theme-flat/static/js/calendar.js b/themes/hugo-theme-flat/static/js/calendar.js index a9b4a10..a407574 100644 --- a/themes/hugo-theme-flat/static/js/calendar.js +++ b/themes/hugo-theme-flat/static/js/calendar.js @@ -17,7 +17,7 @@ document.addEventListener("DOMContentLoaded", function () { let li = $("
  • "); //li.text(item.summary) let startDate = new Date(item.start * 1000); - let date = $(""); + let date = $(""); date.text( zeropad(startDate.getDate()) + "." + @@ -30,7 +30,7 @@ document.addEventListener("DOMContentLoaded", function () { zeropad(startDate.getMinutes()) ); date.appendTo(li); - let summary = $(""); + let summary = $(""); summary.text(item.summary); if (item.url) { let a = $(""); @@ -46,7 +46,7 @@ document.addEventListener("DOMContentLoaded", function () { loc.attr("data-loc", item.location); loc.attr("title", "Click to copy: " + item.location); - loc.appendTo(li); + loc.appendTo(date); } li.attr("title", item.description);