From 2102fb7e3b5e786aa88f38507463c5656efdf824 Mon Sep 17 00:00:00 2001 From: Stig Nygaard Date: Wed, 4 Dec 2024 12:21:22 +0100 Subject: [PATCH] minor details --- README.md | 4 ++-- services/proxy-api.ts | 2 +- widgets/tracks.css | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3948e68..004d848 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The widget (frontend code) should be compatible back to at least Firefox 115 and are versions still compatible with Windows 7/8 installations). It also runs in Safari, but unsure how old versions are supported (I'm not able to test that myself). The backend code is my first simple experiments/experience with Deno, so you might see me making many changes and "stupid" comments and TODOs in that๐Ÿ˜Š Currently the backend is tested with Deno -1.46 and Deno 2.0. +1.46 and latest Deno 2.x. #### /widgets/ folder @@ -57,5 +57,5 @@ What could future updates bring? _Maybe_: - A layout that adapt nicer to wider display dimensions of widget - Dark mode - Refactoring code _if_ I'm in the mood for that kind of thing ๐Ÿ™‚ -- More documentation (especially on the Deno proxy-api implementation when it feels a bit more mature) +- More documentation (especially on the Deno proxy-api implementation) - Another widget diff --git a/services/proxy-api.ts b/services/proxy-api.ts index 891ed1b..645744b 100644 --- a/services/proxy-api.ts +++ b/services/proxy-api.ts @@ -267,7 +267,7 @@ function methodError(method: string, headers: Headers) { } }; } else { - let msg = `Specified method '${method}' not available in proxy`; + const msg = `Specified method '${method}' not available in proxy`; return { body: `{error: 3, message: '${msg}'}`, options: { diff --git a/widgets/tracks.css b/widgets/tracks.css index 5b6034e..1d1494a 100644 --- a/widgets/tracks.css +++ b/widgets/tracks.css @@ -181,7 +181,7 @@ a.username { left: calc(50% - (min(100%, 9em) + .2em + 2px) / 2); display: block; - transform: translateY(calc(100% + 1px)); /* +1px because Firefox sometimes mis-positions (css rounding error?) */ + transform: translateY(calc(100% + 1px)); /* +1px because Firefox sometimes mis-positions (css rounding error?) TODO investigate */ transition: transform var(--transition-time-out) ease-in-out var(--transition-delay-out); } .footer a { @@ -198,7 +198,7 @@ a.username { vertical-align: sub; } :host(:hover) .footer { - transform: translateY(1px); /* 1px because Firefox sometimes mis-positions (css rounding error?) */ + transform: translateY(1px); /* 1px because Firefox sometimes mis-positions (css rounding error?) TODO investigate */ transition: transform var(--transition-time-in) ease var(--transition-delay-in); transition-delay: 1.5s; }