mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
fix some scroller issues on mobile devices
This commit is contained in:
parent
9c9d4ba58c
commit
81be6592d6
@ -36,6 +36,16 @@ button {
|
||||
margin-right: -0.6em;
|
||||
}
|
||||
|
||||
/* TODO replace this with a proper fix */
|
||||
/* doesnt work on mobile devices */
|
||||
/* negative margin fixes annoying misalignment with cards and title */
|
||||
@media all and (max-width:50em) {
|
||||
.itemsContainer {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.vertical-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -1,12 +1,3 @@
|
||||
.emby-scroller-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.emby-scroller {
|
||||
margin-left: 4em;
|
||||
margin-right: 4em;
|
||||
}
|
||||
|
||||
.emby-scrollbuttons {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
17
src/components/emby-scroller/emby-scroller.css
Normal file
17
src/components/emby-scroller/emby-scroller.css
Normal file
@ -0,0 +1,17 @@
|
||||
.emby-scroller-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.emby-scroller {
|
||||
margin-left: 3.3%;
|
||||
margin-right: 3.3%;
|
||||
}
|
||||
|
||||
@media all and (max-width:50em) {
|
||||
.emby-scroller {
|
||||
padding-left: 3.3%;
|
||||
padding-right: 3.3%;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
define(['scroller', 'dom', 'layoutManager', 'inputManager', 'focusManager', 'browser', 'registerElement'], function (scroller, dom, layoutManager, inputManager, focusManager, browser) {
|
||||
define(['scroller', 'dom', 'layoutManager', 'inputManager', 'focusManager', 'browser', 'registerElement', 'css!./emby-scroller'], function (scroller, dom, layoutManager, inputManager, focusManager, browser) {
|
||||
'use strict';
|
||||
|
||||
var ScrollerPrototype = Object.create(HTMLDivElement.prototype);
|
||||
|
@ -19,10 +19,10 @@ html {
|
||||
background-color: #101010
|
||||
}
|
||||
|
||||
.skinHeader .semiTransparent {
|
||||
.skinHeader.semiTransparent {
|
||||
-webkit-backdrop-filter: none !important;
|
||||
backdrop-filter: none !important;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.pageTitleWithDefaultLogo {
|
||||
|
@ -19,10 +19,10 @@ html {
|
||||
background-color: #1f1f1f
|
||||
}
|
||||
|
||||
.skinHeader .semiTransparent {
|
||||
.skinHeader.semiTransparent {
|
||||
-webkit-backdrop-filter: none !important;
|
||||
backdrop-filter: none !important;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.pageTitleWithDefaultLogo {
|
||||
|
@ -32,10 +32,10 @@ html {
|
||||
box-shadow: none !important
|
||||
}
|
||||
|
||||
.skinHeader .semiTransparent {
|
||||
.skinHeader.semiTransparent {
|
||||
-webkit-backdrop-filter: none !important;
|
||||
backdrop-filter: none !important;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.pageTitleWithDefaultLogo {
|
||||
|
Loading…
Reference in New Issue
Block a user