@sentinel-nvr/web 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/ui/ui.css +6 -2
  2. package/package.json +1 -1
package/dist/ui/ui.css CHANGED
@@ -246,7 +246,11 @@
246
246
  /* the picture's own aspect (set by the player as --stage-ar); max-height transfers to the width via aspect-ratio → no bars, ever */
247
247
  .nvr-stage { position: relative; width: 100%; aspect-ratio: var(--stage-ar, 16 / 9); max-height: var(--stage-maxh, calc(100dvh - 240px)); background: color-mix(in srgb, var(--text) 92%, var(--bg)); overflow: hidden; }
248
248
  .nvr-stage:fullscreen, .nvr-stage:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; }
249
- .nvr-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
249
+ /* the stage box already has the picture's aspect → cover (not contain): a contained picture leaves a sub-pixel
250
+ sliver of stage background at one edge = a hairline; cover crops at most that fraction. Fullscreen boxes are
251
+ the screen's aspect, so there contain is right. */
252
+ .nvr-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
253
+ .nvr-stage:fullscreen .nvr-stage__video, .nvr-stage:-webkit-full-screen .nvr-stage__video { object-fit: contain; }
250
254
  .nvr-stage__freeze { pointer-events: none; }
251
255
  .nvr-stage .hidden { display: none !important; }
252
256
  .nvr-mute { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); display: grid; place-items: center; box-shadow: var(--shadow-elevated); cursor: pointer; z-index: 3; }
@@ -261,7 +265,7 @@
261
265
  .nvr-pb:hover:not(:disabled) { background: color-mix(in srgb, var(--nvr-on-overlay) 14%, transparent); }
262
266
  .nvr-pb:disabled { opacity: 0.35; cursor: default; }
263
267
  .nvr-pb--speed { font-size: 0.78rem; font-weight: 700; }
264
- .nvr-stage-bar { flex: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; }
268
+ .nvr-stage-bar { flex: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); }
265
269
  .nvr-statusdot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-faint); flex: none; }
266
270
  .nvr-statusdot--live { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
267
271
  .nvr-stage-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentinel-nvr/web",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Shared browser code for the Sentinel NVR plugin for Scrypted: API model + client (/api), player (/player) and React UI with i18n + themes (/ui). Consumed by the plugin's own web UI and the HAPulse dashboard.",
5
5
  "license": "MIT",
6
6
  "author": "Muggedadscher",