From 6523a9e81fb113062ae5adbd1e4f57524d7c065b Mon Sep 17 00:00:00 2001 From: Trond A Ekseth Date: Fri, 18 Nov 2022 22:26:15 +0100 Subject: [PATCH 1/2] Clamp font-size for better mobile responsiveness --- css/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 4c39f9d..f657232 100644 --- a/css/style.css +++ b/css/style.css @@ -20,7 +20,7 @@ h2.bot { background-color: #80cbc4; border: 1px solid black; padding: 20px; - font-size: 30px; + font-size: clamp(1rem, -0.8750rem + 8.3333vw, 2rem); text-align: center; cursor: pointer; color: #073642 From 3f9eebfadaeb882380bc782980393962ac9529e9 Mon Sep 17 00:00:00 2001 From: Trond A Ekseth Date: Fri, 18 Nov 2022 22:26:28 +0100 Subject: [PATCH 2/2] Run prettier on js/script.js --- js/script.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/js/script.js b/js/script.js index e1e132b..bc39407 100644 --- a/js/script.js +++ b/js/script.js @@ -24,18 +24,17 @@ window.onload = function() { group: "dndmusicbot-playlists", filter: ".locked", onMove: (e) => { - if (e.related) - { - return !e.related.classList.contains('locked'); - } + if (e.related) { + return !e.related.classList.contains('locked'); + } }, invertSwap: true, store: { - get: function(sortable) { + get: function (sortable) { var order = localStorage.getItem(sortable.options.group.name); return order ? order.split('|') : []; }, - set: function(sortable) { + set: function (sortable) { var order = sortable.toArray(); localStorage.setItem(sortable.options.group.name, order.join('|')); } @@ -46,18 +45,17 @@ window.onload = function() { group: "dndmusicbot-ambiance", filter: ".locked", onMove: (e) => { - if (e.related) - { - return !e.related.classList.contains('locked'); - } + if (e.related) { + return !e.related.classList.contains('locked'); + } }, invertSwap: true, store: { - get: function(sortable) { + get: function (sortable) { var order = localStorage.getItem(sortable.options.group.name); return order ? order.split('|') : []; }, - set: function(sortable) { + set: function (sortable) { var order = sortable.toArray(); localStorage.setItem(sortable.options.group.name, order.join('|')); }