Hermes Agent commited on
Commit
a0902ab
·
1 Parent(s): 3056d2b

feat(ui): optimize mobile layout with transparent alpha-picker and widescreen HD spotlight banner

Browse files
apex/ui/abyss.css CHANGED
@@ -402,23 +402,91 @@ input[type="radio"]:checked {
402
 
403
  /* Jellyfin 12 modern app shell (React / MUI) [BETA] */
404
 
405
- .alphaPicker-fixed-right {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
  align-self: center;
407
  }
408
 
409
- .alphaPicker-fixed-right .MuiPaper-root {
410
- background: rgba(var(--abyss-glass-tint), 0.2);
411
- -webkit-backdrop-filter: blur(var(--abyss-glass-blur));
412
- backdrop-filter: blur(var(--abyss-glass-blur));
413
- padding: 2px !important;
414
- border-radius: 50px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
  }
416
 
417
- .alphaPicker-fixed-right .MuiPaper-root .MuiButtonBase-root {
418
- border-radius: 50px !important;
419
- font-family: monospace;
420
- padding: 0 7.5px;
421
- margin: 1px 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  }
423
 
424
  .MuiTouchRipple-root {
 
402
 
403
  /* Jellyfin 12 modern app shell (React / MUI) [BETA] */
404
 
405
+ /* Jellyfin Alphabet Picker (A-Z Quick Scroller) - Transparent, Small & Edge-Pinned */
406
+ .alphaPicker,
407
+ .alphaPicker-fixed,
408
+ .alphaPicker-fixed-right,
409
+ .alphanumeric-scrollbar,
410
+ div[class*="alphaPicker"] {
411
+ background: transparent !important;
412
+ background-color: transparent !important;
413
+ background-image: none !important;
414
+ box-shadow: none !important;
415
+ border: none !important;
416
+ -webkit-backdrop-filter: none !important;
417
+ backdrop-filter: none !important;
418
+ right: 0 !important;
419
+ margin-right: 0 !important;
420
+ padding-right: 1px !important;
421
+ padding-left: 0 !important;
422
+ width: auto !important;
423
+ min-width: 0 !important;
424
+ max-width: 18px !important;
425
+ pointer-events: auto !important;
426
+ z-index: 100 !important;
427
  align-self: center;
428
  }
429
 
430
+ .alphaPicker .alphaPickerInner,
431
+ .alphaPicker-fixed-right .alphaPickerInner,
432
+ .alphaPicker-fixed-right .MuiPaper-root,
433
+ div[class*="alphaPicker"] .MuiPaper-root,
434
+ div[class*="alphaPickerInner"] {
435
+ background: transparent !important;
436
+ background-color: transparent !important;
437
+ background-image: none !important;
438
+ box-shadow: none !important;
439
+ border: none !important;
440
+ -webkit-backdrop-filter: none !important;
441
+ backdrop-filter: none !important;
442
+ padding: 0 !important;
443
+ margin: 0 !important;
444
+ width: auto !important;
445
+ min-width: 0 !important;
446
+ max-width: 18px !important;
447
+ border-radius: 0 !important;
448
+ display: flex !important;
449
+ flex-direction: column !important;
450
+ align-items: center !important;
451
+ justify-content: center !important;
452
  }
453
 
454
+ .alphaPickerButton,
455
+ .alphaPickerRow,
456
+ .alphaPicker-fixed-right .MuiButtonBase-root,
457
+ .alphaPicker-fixed-right .MuiPaper-root .MuiButtonBase-root,
458
+ div[class*="alphaPicker"] button,
459
+ div[class*="alphaPickerButton"] {
460
+ background: transparent !important;
461
+ background-color: transparent !important;
462
+ color: rgba(255, 255, 255, 0.55) !important;
463
+ font-size: 8.5px !important;
464
+ font-weight: 700 !important;
465
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif !important;
466
+ line-height: 1 !important;
467
+ padding: 1px 2px !important;
468
+ margin: 0 !important;
469
+ min-width: 12px !important;
470
+ max-width: 16px !important;
471
+ height: auto !important;
472
+ min-height: 0 !important;
473
+ border: none !important;
474
+ border-radius: 2px !important;
475
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.9) !important;
476
+ transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease !important;
477
+ }
478
+
479
+ .alphaPickerButton:hover,
480
+ .alphaPickerButton:focus,
481
+ .alphaPickerButton.selectedItem,
482
+ .alphaPickerButton-selected,
483
+ .alphaPicker-fixed-right .MuiButtonBase-root:hover,
484
+ .alphaPicker-fixed-right .MuiButtonBase-root.Mui-selected {
485
+ color: #ffffff !important;
486
+ background: rgba(var(--abyss-accent, 0, 164, 220), 0.35) !important;
487
+ transform: scale(1.25) !important;
488
+ font-weight: 900 !important;
489
+ text-shadow: 0 0 6px rgba(var(--abyss-accent, 0, 164, 220), 0.8) !important;
490
  }
491
 
492
  .MuiTouchRipple-root {
apex/ui/spotlight-loader.js CHANGED
@@ -88,10 +88,10 @@
88
  "." + FRAME_CLASS + ":focus { outline: none; }" +
89
  "@media (min-width:1400px) { ." + FRAME_CLASS + " { height:72vh;max-height:760px; } }" +
90
  "@media (min-width:1920px) { ." + FRAME_CLASS + " { height:68vh;max-height:860px; } }" +
91
- "@media (max-width:1024px) and (orientation:portrait) and (hover:none) and (pointer:coarse) { ." + FRAME_CLASS + " { height:90vh;min-height:320px;max-height:720px; } }" +
92
  "@media (max-width:1024px) and (orientation:landscape) and (hover:none) and (pointer:coarse) { ." + FRAME_CLASS + " { height:100vh;min-height:280px;max-height:420px; } }" +
93
- "@media (max-width:600px) and (orientation:portrait) and (hover:none) and (pointer:coarse) { ." + FRAME_CLASS + " { height:90vh;min-height:260px;max-height:720px; } }" +
94
- "@media (max-width:900px) and (orientation:landscape) and (max-height:500px) and (hover:none) and (pointer:coarse) { ." + FRAME_CLASS + " { height:100vh;min-height:200px; } }";
95
  document.head.appendChild(style);
96
  }
97
 
 
88
  "." + FRAME_CLASS + ":focus { outline: none; }" +
89
  "@media (min-width:1400px) { ." + FRAME_CLASS + " { height:72vh;max-height:760px; } }" +
90
  "@media (min-width:1920px) { ." + FRAME_CLASS + " { height:68vh;max-height:860px; } }" +
91
+ "@media (max-width:1024px) and (orientation:portrait) { ." + FRAME_CLASS + " { height:54vh;min-height:360px;max-height:500px; } }" +
92
  "@media (max-width:1024px) and (orientation:landscape) and (hover:none) and (pointer:coarse) { ." + FRAME_CLASS + " { height:100vh;min-height:280px;max-height:420px; } }" +
93
+ "@media (max-width:600px) and (orientation:portrait) { ." + FRAME_CLASS + " { height:52vh;min-height:340px;max-height:460px; } }" +
94
+ "@media (max-width:900px) and (orientation:landscape) and (max-height:500px) { ." + FRAME_CLASS + " { height:100vh;min-height:200px; } }";
95
  document.head.appendChild(style);
96
  }
97
 
apex/ui/spotlight.css CHANGED
@@ -724,14 +724,87 @@ body {
724
  }
725
  }
726
 
727
- @media (max-width: 600px) and (orientation: portrait) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
728
  #episode-label {
729
- font-size: large;
730
  font-weight: bold;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
731
  }
732
 
733
  #carousel-dots {
734
- bottom: 0px;
735
  }
736
 
737
  #update-toast {
@@ -739,17 +812,6 @@ body {
739
  right: 12px;
740
  max-width: calc(100vw - 24px);
741
  }
742
-
743
- #plot {
744
- max-width: 90vw;
745
- margin-bottom: 12px;
746
- }
747
-
748
- #logo {
749
- max-width: 100vw;
750
- max-height: 150px;
751
- margin-bottom: 2px;
752
- }
753
  }
754
 
755
  @media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
 
724
  }
725
  }
726
 
727
+ @media (max-width: 768px) and (orientation: portrait) {
728
+ /* Mobile Full-Widescreen Backdrop: Remove the heavy left/right black side cutoffs */
729
+ #backdrop {
730
+ -webkit-mask-image:
731
+ linear-gradient(to bottom, black 55%, transparent 100%),
732
+ linear-gradient(to bottom, transparent 0%, black 5%);
733
+ mask-image:
734
+ linear-gradient(to bottom, black 55%, transparent 100%),
735
+ linear-gradient(to bottom, transparent 0%, black 5%);
736
+ -webkit-mask-composite: source-over;
737
+ mask-composite: add;
738
+ }
739
+
740
+ #backdrop img {
741
+ width: 100%;
742
+ height: 100%;
743
+ object-fit: cover;
744
+ object-position: center 20%;
745
+ transform: none !important;
746
+ image-rendering: -webkit-optimize-contrast;
747
+ }
748
+
749
+ #content {
750
+ padding: 10vh 4.5vw 3vh;
751
+ justify-content: flex-end;
752
+ }
753
+
754
+ #logo {
755
+ max-width: 70vw;
756
+ max-height: 70px;
757
+ object-position: left bottom;
758
+ margin-bottom: 10px;
759
+ }
760
+
761
+ #title {
762
+ font-size: clamp(1.4rem, 5.5vw, 2.2rem);
763
+ margin-bottom: 8px;
764
+ line-height: 1.1;
765
+ }
766
+
767
+ #meta {
768
+ margin-bottom: 8px;
769
+ gap: 6px;
770
+ flex-wrap: wrap;
771
+ }
772
+
773
+ .meta-badge {
774
+ font-size: 0.75rem;
775
+ padding: 2px 7px;
776
+ }
777
+
778
  #episode-label {
779
+ font-size: medium;
780
  font-weight: bold;
781
+ margin-bottom: 8px;
782
+ }
783
+
784
+ #plot {
785
+ font-size: 0.85rem;
786
+ line-height: 1.35;
787
+ max-width: 92vw;
788
+ margin-bottom: 12px;
789
+ display: -webkit-box;
790
+ -webkit-line-clamp: 2;
791
+ -webkit-box-orient: vertical;
792
+ overflow: hidden;
793
+ }
794
+
795
+ #buttons {
796
+ gap: 8px;
797
+ margin-bottom: 4px;
798
+ }
799
+
800
+ .btn {
801
+ padding: 8px 16px;
802
+ font-size: 0.88rem;
803
+ height: 38px;
804
  }
805
 
806
  #carousel-dots {
807
+ bottom: 2px;
808
  }
809
 
810
  #update-toast {
 
812
  right: 12px;
813
  max-width: calc(100vw - 24px);
814
  }
 
 
 
 
 
 
 
 
 
 
 
815
  }
816
 
817
  @media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
apex/ui/spotlight.html CHANGED
@@ -307,6 +307,8 @@
307
  zoomAnimation = null;
308
  image.style.transform = 'scale(1) translate(0, 0)';
309
  if (paused || reducedMotion.matches) return;
 
 
310
  const angle = Math.random() * Math.PI * 2;
311
  const panX = Math.cos(angle) * 1.5;
312
  const panY = Math.sin(angle) * 1.5;
 
307
  zoomAnimation = null;
308
  image.style.transform = 'scale(1) translate(0, 0)';
309
  if (paused || reducedMotion.matches) return;
310
+ const isMobile = window.innerWidth <= 768 && window.innerHeight > window.innerWidth;
311
+ if (isMobile) return;
312
  const angle = Math.random() * Math.PI * 2;
313
  const panX = Math.cos(angle) * 1.5;
314
  const panY = Math.sin(angle) * 1.5;