Compare commits

...
6 Commits
Author SHA1 Message Date
Curid db049a5314 release v0.3.3 2025-07-04 17:31:07 +00:00
Curid 6b67a9a5d8 css: remove redundant border-style 2025-07-04 17:18:22 +00:00
Curid 95e85ec2e1 css: use rem for media queries 2025-07-04 16:54:04 +00:00
Curid 9f3d11abce css: make the player buttons slightly bigger #78 2025-07-04 16:45:52 +00:00
Curid b28d4c86cf css: change desktop scale to 0.75 #78 2025-07-04 16:29:07 +00:00
Curid fdbb339ff4 css: fix player bar #78 2025-07-04 16:28:17 +00:00
21 changed files with 110 additions and 170 deletions
Generated
+30 -30
View File
@@ -104,7 +104,7 @@ dependencies = [
[[package]]
name = "auth_basic"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"argon2",
"async-trait",
@@ -123,7 +123,7 @@ dependencies = [
[[package]]
name = "auth_none"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"argon2",
"async-trait",
@@ -410,7 +410,7 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "common"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"bytes",
@@ -592,7 +592,7 @@ dependencies = [
[[package]]
name = "csv"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"pretty_assertions",
"serde",
@@ -624,7 +624,7 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "env"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"bytesize",
"common",
@@ -675,7 +675,7 @@ dependencies = [
[[package]]
name = "eventdb"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"bytesize",
"common",
@@ -750,7 +750,7 @@ checksum = "3958af68a31b1d1384d3f39b6aa33eb14b6009065b5ca305ddd9712a4237124f"
[[package]]
name = "fs"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"pretty_assertions",
"thiserror 2.0.11",
@@ -943,7 +943,7 @@ dependencies = [
[[package]]
name = "handler"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"axum 0.8.1",
"common",
@@ -951,7 +951,7 @@ dependencies = [
"hls",
"http",
"hyper",
"log 0.3.2",
"log 0.3.3",
"mime_guess",
"monitor_groups",
"pretty_assertions",
@@ -1038,7 +1038,7 @@ checksum = "5491a308e0214554f07a81d8944abe45f552871c12e3c3c6e7e5d354039a6c4c"
[[package]]
name = "hls"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"bytes",
@@ -1344,7 +1344,7 @@ dependencies = [
[[package]]
name = "log"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"bytesize",
"common",
@@ -1449,7 +1449,7 @@ dependencies = [
[[package]]
name = "monitor"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"bytesize",
@@ -1477,7 +1477,7 @@ dependencies = [
[[package]]
name = "monitor_groups"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"common",
"pretty_assertions",
@@ -1490,7 +1490,7 @@ dependencies = [
[[package]]
name = "motion"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"axum 0.8.1",
@@ -1509,7 +1509,7 @@ dependencies = [
[[package]]
name = "mp4"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"pretty_assertions",
@@ -1535,7 +1535,7 @@ checksum = "96a1fe2275b68991faded2c80aa4a33dba398b77d276038b8f50701a22e55918"
[[package]]
name = "mqtt"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"common",
@@ -1591,7 +1591,7 @@ dependencies = [
[[package]]
name = "object_detection"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"axum 0.8.1",
@@ -1621,7 +1621,7 @@ dependencies = [
[[package]]
name = "object_detection_tflite"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-channel",
"async-trait",
@@ -1743,7 +1743,7 @@ dependencies = [
[[package]]
name = "plugin"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"axum 0.8.1",
@@ -1929,7 +1929,7 @@ dependencies = [
[[package]]
name = "recdb"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"bytesize",
@@ -1949,7 +1949,7 @@ dependencies = [
[[package]]
name = "recording"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"axum 0.8.1",
@@ -2202,7 +2202,7 @@ dependencies = [
[[package]]
name = "sentryshot"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"axum 0.8.1",
"bytesize",
@@ -2216,7 +2216,7 @@ dependencies = [
"hls",
"hyper",
"jiff",
"log 0.3.2",
"log 0.3.3",
"monitor",
"monitor_groups",
"pico-args",
@@ -2445,7 +2445,7 @@ dependencies = [
[[package]]
name = "streamer"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"bytes",
@@ -2548,7 +2548,7 @@ dependencies = [
[[package]]
name = "tflite_lib"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"pretty_assertions",
"test-case",
@@ -2558,7 +2558,7 @@ dependencies = [
[[package]]
name = "tflite_sys"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"cc",
]
@@ -2615,7 +2615,7 @@ dependencies = [
[[package]]
name = "thumb_scale"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"async-trait",
"common",
@@ -2964,7 +2964,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "vod"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"bytesize",
"common",
@@ -3072,14 +3072,14 @@ checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
[[package]]
name = "web"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"axum 0.8.1",
"common",
"http",
"http-body",
"httpdate",
"log 0.3.2",
"log 0.3.3",
"monitor_groups",
"pin-project",
"pretty_assertions",
+1 -1
View File
@@ -13,7 +13,7 @@ members = [
resolver = "2"
[workspace.package]
version = "0.3.2"
version = "0.3.3"
edition = "2024"
rust-version = "1.85"
license = "GPL-2.0+"
+2 -2
View File
@@ -28,7 +28,7 @@ docker run -it \
-v /docker/sentryshot/configs:/app/configs \
-v /docker/sentryshot/storage:/app/storage \
-p 2020:2020 \
codeberg.org/sentryshot/sentryshot:v0.3.2
codeberg.org/sentryshot/sentryshot:v0.3.3
```
App will be served on `http://ip:2020/live`
@@ -40,7 +40,7 @@ services:
sentryshot:
shm_size: 500m
restart: unless-stopped
image: codeberg.org/sentryshot/sentryshot:v0.3.2
image: codeberg.org/sentryshot/sentryshot:v0.3.3
ports:
- 2020:2020
environment:
+6
View File
@@ -1,5 +1,11 @@
## unreleased
## `v0.3.3`
- more web interface fixes #78
## `v0.3.2`
- fix web interface scale on mobile #78
## `v0.3.1`
-1
View File
@@ -369,7 +369,6 @@ fn edit_templates(tmpls: &mut Templates) {
style=\"
font-size: calc(var(--scale) * 2rem);
border-width: calc(var(--scale) * 0.17rem);
border-style: solid;
border-color: var(--color0);
border-radius: calc(var(--scale) * 0.68rem);
\"
-15
View File
@@ -137,7 +137,6 @@ const zoneSelectFieldHTML = /* HTML */ `
class="items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -175,7 +174,6 @@ const thresholdsFieldHTML = /* HTML */ `
class="items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -220,7 +218,6 @@ const zonesPreviewOptionsHTML = /* HTML */ `
class="flex items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
flex-wrap: wrap;
justify-content: space-between
@@ -231,11 +228,8 @@ const zonesPreviewOptionsHTML = /* HTML */ `
class="js-1x pl-2 pr-1 text-color bg-color2 hover:bg-color1"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-top-left-radius: calc(var(--scale) * 0.84rem);
border-bottom-left-radius: calc(var(--scale) * 0.84rem);
border-right-style: solid;
"
>
1x
@@ -244,9 +238,6 @@ const zonesPreviewOptionsHTML = /* HTML */ `
class="js-4x px-1 text-color bg-color2 hover:bg-color1 motion-step-size-selected"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-style: hidden solid;
"
>
4x
@@ -255,9 +246,6 @@ const zonesPreviewOptionsHTML = /* HTML */ `
class="js-10x px-1 text-color bg-color2 hover:bg-color1"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-style: hidden solid;
"
>
10x
@@ -266,11 +254,8 @@ const zonesPreviewOptionsHTML = /* HTML */ `
class="js-20x pl-1 pr-2 text-color bg-color2 hover:bg-color1"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-top-right-radius: calc(var(--scale) * 0.84rem);
border-bottom-right-radius: calc(var(--scale) * 0.84rem);
border-left-style: solid;
"
>
20x
+2 -26
View File
@@ -173,10 +173,10 @@ function thresholds(detectors, getDetectorName) {
return {
html: /* HTML */ `
<li
class="object-detection-label-wrapper flex items-center px-2"
class="flex items-center px-2"
style="
border-color: var(--color1);
border-width: calc(var(--scale) * 0.1rem);
border-bottom-width: calc(var(--scale) * 0.1rem);
"
>
<label
@@ -377,7 +377,6 @@ function crop(detectors, hasSubStream, getMonitorId, getDetectorName) {
class="js-options flex items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
flex-wrap: wrap;
"
@@ -399,7 +398,6 @@ function crop(detectors, hasSubStream, getMonitorId, getDetectorName) {
class="js-x text-center"
style="
font-size: calc(var(--scale) * 1.3rem);
border-style: none;
border-radius: 5px;
width: calc(var(--scale) * 3rem);
"
@@ -422,7 +420,6 @@ function crop(detectors, hasSubStream, getMonitorId, getDetectorName) {
class="js-y text-center"
style="
font-size: calc(var(--scale) * 1.3rem);
border-style: none;
border-radius: 5px;
width: calc(var(--scale) * 3rem);
"
@@ -449,7 +446,6 @@ function crop(detectors, hasSubStream, getMonitorId, getDetectorName) {
class="js-size text-center"
style="
font-size: calc(var(--scale) * 1.3rem);
border-style: none;
border-radius: 5px;
width: calc(var(--scale) * 3.5rem);
"
@@ -655,7 +651,6 @@ const maskOptionsHTML = /* HTML */ `
class="flex items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
flex-wrap: wrap;
justify-content: space-between
@@ -666,11 +661,8 @@ const maskOptionsHTML = /* HTML */ `
class="js-1x pl-2 pr-1 text-color bg-color2 hover:bg-color1"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-top-left-radius: calc(var(--scale) * 0.84rem);
border-bottom-left-radius: calc(var(--scale) * 0.84rem);
border-right-style: solid;
"
>
1x
@@ -679,9 +671,6 @@ const maskOptionsHTML = /* HTML */ `
class="js-4x px-1 text-color bg-color2 hover:bg-color1 object_detection_mask-step-size-selected"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-style: hidden solid;
"
>
4x
@@ -690,9 +679,6 @@ const maskOptionsHTML = /* HTML */ `
class="js-10x px-1 text-color bg-color2 hover:bg-color1"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-style: hidden solid;
"
>
10x
@@ -701,11 +687,8 @@ const maskOptionsHTML = /* HTML */ `
class="js-20x pl-1 pr-2 text-color bg-color2 hover:bg-color1"
style="
font-size: calc(var(--scale) * 1.4rem);
border-width: calc(var(--scale) * 0.07rem);
border-color: var(--color3);
border-top-right-radius: calc(var(--scale) * 0.84rem);
border-bottom-right-radius: calc(var(--scale) * 0.84rem);
border-left-style: solid;
"
>
20x
@@ -1043,13 +1026,6 @@ function normalizeMask(mask) {
// CSS.
const $style = document.createElement("style");
$style.innerHTML = /* CSS */ `
.object-detection-label-wrapper {
border-top-style: solid;
}
.object-detection-label-wrapper:first-child {
border-top-style: none;
}
/* Mask. */
.object_detection_mask-step-size-selected {
background: var(--color1) !important;
-2
View File
@@ -587,7 +587,6 @@ function newHTMLfield(options, id, label, placeholder = "") {
class="items-center px-2 ${errorField === true ? "" : "pb-1"}"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -616,7 +615,6 @@ function newModalFieldHTML(id, label) {
class="flex items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -222,7 +222,6 @@ describe("newField", () => {
class="items-center px-2 "
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -359,7 +358,6 @@ describe("fieldTemplate", () => {
class="items-center px-2 "
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -415,7 +413,6 @@ describe("fieldTemplate", () => {
class="items-center px-2 "
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -475,7 +472,6 @@ describe("fieldTemplate", () => {
class="items-center px-2 pb-1"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -523,7 +519,6 @@ describe("fieldTemplate", () => {
class="items-center px-2 pb-1"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -574,7 +569,6 @@ describe("fieldTemplate", () => {
class="items-center px-2 "
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -668,7 +662,6 @@ describe("selectCustomField", () => {
class="items-center px-2 pb-1"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -738,7 +731,6 @@ test("newModalFieldHTML", () => {
class="flex items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -771,7 +763,6 @@ describe("passwordField", () => {
class="items-center px-2 "
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -809,7 +800,6 @@ describe("passwordField", () => {
class="items-center px-2 "
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
-1
View File
@@ -130,7 +130,6 @@ function newModalSelect(name, options, onSelect) {
style="
font-size: calc(var(--scale) * 1.5rem);
border-width: calc(var(--scale) * 0.034rem);
border-style: solid;
border-color: var(--color1);
"
>${option}</span
@@ -116,7 +116,6 @@ test("modalSelect", () => {
style="
font-size: calc(var(--scale) * 1.5rem);
border-width: calc(var(--scale) * 0.034rem);
border-style: solid;
border-color: var(--color1);
"
>
@@ -127,7 +126,6 @@ test("modalSelect", () => {
style="
font-size: calc(var(--scale) * 1.5rem);
border-width: calc(var(--scale) * 0.034rem);
border-style: solid;
border-color: var(--color1);
"
>
@@ -273,7 +273,6 @@ const datePickerHTML = /* HTML */ `
style="
font-size: 0;
border-color: var(--color3-hover);
border-bottom-style: solid;
"
>
<button class="js-prev-month bg-color2">
+18 -20
View File
@@ -127,11 +127,13 @@ function newPlayer(data, isAdmin, token) {
${topOverlayHTML}
</div>
<div
class="absolute flex justify-center w-full px-4"
class="absolute"
style="
z-index: 2;
bottom: calc(var(--scale) * 0.5rem);
height: calc(var(--scale) * 1.75rem);
right: calc(var(--spacing) * 4);
bottom: calc(var(--spacing) * 4);
left: calc(var(--spacing) * 4);
height: calc(var(--scale) * 1.5rem);
min-height: 3.5%;
"
>
@@ -187,21 +189,20 @@ function newPlayer(data, isAdmin, token) {
</button>
</div>
<div
class="player-overlay absolute flex justify-center w-full px-4"
class="player-overlay absolute"
style="
z-index: 2;
bottom: calc(var(--scale) * 0.5rem);
height: calc(var(--scale) * 1.75rem);
right: calc(var(--spacing) * 4);
bottom: calc(var(--spacing) * 4);
left: calc(var(--spacing) * 4);
height: calc(var(--scale) * 1.5rem);
min-height: 3.5%;
"
>
${renderTimeline(d)}
<progress
class="js-progress w-full"
class="js-progress w-full h-full py-1"
style="
box-sizing: border-box;
padding-top: calc(var(--spacing) * 1.5);
padding-bottom: calc(var(--spacing) * 1.5);
background: rgb(0 0 0 / 0%);
opacity: 0.8;
user-select: none;
@@ -241,7 +242,7 @@ function newPlayer(data, isAdmin, token) {
<button class="js-delete p-1" style="background-color: rgb(0 0 0 / 0%);">
<img
class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/trash-2.svg"
>
</button>`
@@ -255,14 +256,14 @@ function newPlayer(data, isAdmin, token) {
>
<img
class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/download.svg"
>
</a>
<button class="js-fullscreen p-1" style="background-color: rgb(0 0 0 / 0%);">
<img
class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="${iconMaximizePath}"
>
</button>
@@ -476,18 +477,15 @@ function renderTimeline(data) {
break;
}
}
const x = start;
const width = end - x;
svg += `<rect x="${x}" width="${width}" y="0" height="100"/>`;
svg += `<rect x="${start}" width="${end - start}" y="0" height="1"/>`;
start = end;
}
return /* HTML */ `
<svg
class="absolute"
style="height: 100%; fill: var(--color-red);"
viewBox="0 0 100 100"
class="absolute w-full h-full"
style="fill: var(--color-red);"
viewBox="0 0 ${resolution} 1"
preserveAspectRatio="none"
>
${svg}
+46 -41
View File
@@ -82,29 +82,31 @@ describe("newPlayer", () => {
D
</span>
</div>
<div class="absolute flex justify-center w-full px-4"
<div class="absolute"
style="
z-index: 2;
bottom: calc(var(--scale) * 0.5rem);
height: calc(var(--scale) * 1.75rem);
right: calc(var(--spacing) * 4);
bottom: calc(var(--spacing) * 4);
left: calc(var(--spacing) * 4);
height: calc(var(--scale) * 1.5rem);
min-height: 3.5%;
"
>
<svg class="absolute"
style="height: 100%; fill: var(--color-red);"
viewbox="0 0 100 100"
<svg class="absolute w-full h-full"
style="fill: var(--color-red);"
viewbox="0 0 1000 1"
preserveaspectratio="none"
>
<rect x="100"
width="100"
y="0"
height="100"
height="1"
>
</rect>
<rect x="950"
width="50"
y="0"
height="100"
height="1"
>
</rect>
</svg>
@@ -173,37 +175,36 @@ describe("newPlayer", () => {
>
</button>
</div>
<div class="player-overlay absolute flex justify-center w-full px-4"
<div class="player-overlay absolute"
style="
z-index: 2;
bottom: calc(var(--scale) * 0.5rem);
height: calc(var(--scale) * 1.75rem);
right: calc(var(--spacing) * 4);
bottom: calc(var(--spacing) * 4);
left: calc(var(--spacing) * 4);
height: calc(var(--scale) * 1.5rem);
min-height: 3.5%;
"
>
<svg class="absolute"
style="height: 100%; fill: var(--color-red);"
viewbox="0 0 100 100"
<svg class="absolute w-full h-full"
style="fill: var(--color-red);"
viewbox="0 0 1000 1"
preserveaspectratio="none"
>
<rect x="100"
width="100"
y="0"
height="100"
height="1"
>
</rect>
<rect x="950"
width="50"
y="0"
height="100"
height="1"
>
</rect>
</svg>
<progress class="js-progress w-full"
<progress class="js-progress w-full h-full py-1"
style="
box-sizing: border-box;
padding-top: calc(var(--spacing) * 1.5);
padding-bottom: calc(var(--spacing) * 1.5);
background: rgb(0 0 0 / 0%);
opacity: 0.8;
user-select: none;
@@ -242,7 +243,7 @@ describe("newPlayer", () => {
style="background-color: rgb(0 0 0 / 0%);"
>
<img class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/download.svg"
>
</a>
@@ -250,7 +251,7 @@ describe("newPlayer", () => {
style="background-color: rgb(0 0 0 / 0%);"
>
<img class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/maximize.svg"
>
</button>
@@ -346,11 +347,13 @@ describe("newPlayer", () => {
<div
class="absolute flex justify-center w-full px-4"
class="absolute"
style="
z-index: 2;
bottom: calc(var(--scale) * 0.5rem);
height: calc(var(--scale) * 1.75rem);
right: calc(var(--spacing) * 4);
bottom: calc(var(--spacing) * 4);
left: calc(var(--spacing) * 4);
height: calc(var(--scale) * 1.5rem);
min-height: 3.5%;
"
>
@@ -358,21 +361,21 @@ describe("newPlayer", () => {
<svg
class="absolute"
class="absolute w-full h-full"
preserveAspectRatio="none"
style="height: 100%; fill: var(--color-red);"
viewBox="0 0 100 100"
style="fill: var(--color-red);"
viewBox="0 0 1000 1"
>
<rect
height="100"
height="1"
width="100"
x="100"
y="0"
/>
<rect
height="100"
height="1"
width="50"
x="950"
y="0"
@@ -443,29 +446,31 @@ describe("newPlayer", () => {
D
</span>
</div>
<div class="absolute flex justify-center w-full px-4"
<div class="absolute"
style="
z-index: 2;
bottom: calc(var(--scale) * 0.5rem);
height: calc(var(--scale) * 1.75rem);
right: calc(var(--spacing) * 4);
bottom: calc(var(--spacing) * 4);
left: calc(var(--spacing) * 4);
height: calc(var(--scale) * 1.5rem);
min-height: 3.5%;
"
>
<svg class="absolute"
style="height: 100%; fill: var(--color-red);"
viewbox="0 0 100 100"
<svg class="absolute w-full h-full"
style="fill: var(--color-red);"
viewbox="0 0 1000 1"
preserveaspectratio="none"
>
<rect x="100"
width="100"
y="0"
height="100"
height="1"
>
</rect>
<rect x="950"
width="50"
y="0"
height="100"
height="1"
>
</rect>
</svg>
@@ -482,7 +487,7 @@ describe("newPlayer", () => {
style="background-color: rgb(0 0 0 / 0%);"
>
<img class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/trash-2.svg"
>
</button>
@@ -493,7 +498,7 @@ describe("newPlayer", () => {
style="background-color: rgb(0 0 0 / 0%);"
>
<img class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/download.svg"
>
</a>
@@ -501,7 +506,7 @@ describe("newPlayer", () => {
style="background-color: rgb(0 0 0 / 0%);"
>
<img class="icon-filter"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.5rem);"
style="aspect-ratio: 1; width: calc(var(--scale) * 1.75rem);"
src="assets/icons/feather/maximize.svg"
>
</button>
-2
View File
@@ -576,7 +576,6 @@ function newMultiSelect(label, values, initial) {
class="items-center w-full px-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
@@ -658,7 +657,6 @@ function newMonitorPicker(monitors, newModalSelect2 = newModalSelect) {
class="items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
-1
View File
@@ -118,7 +118,6 @@ describe("MultiSelect", () => {
class="items-center w-full px-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
>
-7
View File
@@ -58,7 +58,6 @@ function newRenderer($parent) {
padding-right: calc(var(--spacing) * 14);
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color3);
border-bottom-style: solid;
"
>
<img
@@ -141,7 +140,6 @@ const menubarHTML = /* HTML */ `
height: var(--topbar-height);
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color3);
border-bottom-style: solid;
"
>
<nav class="js-settings-subcategory-back flex shrink-0">${backIconHTML}</nav>
@@ -167,7 +165,6 @@ function categoryNavHTML(data, label, c = "text-color") {
style="
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color3);
border-bottom-style: solid;
"
data="${data}"
>
@@ -334,7 +331,6 @@ function newCategory(categoryName, title) {
style="
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color3);
border-bottom-style: solid;
"
>
<nav class="js-settings-category-back flex shrink-0">
@@ -468,7 +464,6 @@ function newCategory2(categoryName, title, form) {
style="
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color3);
border-bottom-style: solid;
"
>
<nav class="js-settings-category-back flex shrink-0">
@@ -1063,7 +1058,6 @@ function newSelectMonitorField(monitors) {
style="
width: auto;
border-width: calc(var(--scale) * 0.034rem);
border-style: solid;
border-color: var(--color1);
font-size: calc(var(--scale) * 1.8rem);
"
@@ -1146,7 +1140,6 @@ function newSelectMonitorField(monitors) {
class="flex items-center p-2"
style="
border-color: var(--color1);
border-bottom-style: solid;
border-bottom-width: calc(var(--scale) * 0.17rem);
"
></li>
+3 -2
View File
@@ -563,7 +563,6 @@ img {
width: calc(var(--scale) * 2rem);
color: var(--color-text);
border-width: calc(var(--scale) * 0.17rem);
border-style: solid;
border-color: var(--color2);
border-radius: calc(var(--scale) * 0.51rem);
background: var(--color3);
@@ -804,8 +803,10 @@ img {
}
/* Tablet/Dektop. */
@media only screen and (width >= 768px) {
@media only screen and (width >= 48rem) {
:root {
--scale: 0.75;
--spacing: 3px;
--gridsize: 3;
}
-4
View File
@@ -75,7 +75,6 @@
text-decoration: none;
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color2);
border-bottom-style: solid;
border-top: none;
"
>
@@ -96,7 +95,6 @@
text-decoration: none;
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color2);
border-bottom-style: solid;
"
>
<img
@@ -117,7 +115,6 @@
text-decoration: none;
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color2);
border-bottom-style: solid;
"
>
<img
@@ -137,7 +134,6 @@
text-decoration: none;
border-width: calc(var(--scale) * 0.034rem);
border-color: var(--color2);
border-bottom-style: solid;
"
>
<img
+1 -1
View File
@@ -104,7 +104,7 @@
}
/* Tablet/Dektop. */
@media only screen and (min-width: 768px) {
@media only screen and (min-width: 48rem) {
.log-list-wrapper {
position: static;
width: 100%;
+1 -1
View File
@@ -122,7 +122,7 @@
}
/* Tablet/Dektop. */
@media only screen and (width >= 768px) {
@media only screen and (width >= 48rem) {
.settings-navbar {
width: auto;
padding-top: calc(var(--spacing) * 27);