view: many fixes for mobile

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-05-11 03:28:26 -07:00
parent 5e748710cd
commit 70bac31f51
9 changed files with 36 additions and 6 deletions

View File

@ -53,12 +53,13 @@ export default defineComponent({
display: flex; display: flex;
> .name { > .name {
font-size: 18px; font-size: 1.1em;
flex-grow: 1; flex-grow: 1;
} }
> .action { > .action {
:deep a { :deep a {
font-size: 0.9em;
color: var(--color-primary); color: var(--color-primary);
} }
} }

View File

@ -176,6 +176,7 @@ export default defineComponent({
.explore-outer { .explore-outer {
height: 100%; height: 100%;
overflow: auto; overflow: auto;
padding-top: 8px;
.link-list { .link-list {
padding: 8px 10px; padding: 8px 10px;

View File

@ -1272,6 +1272,7 @@ export default defineComponent({
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;
-webkit-user-select: none; // iOS Safari is a horrible browser
position: relative; position: relative;
} }

View File

@ -390,6 +390,7 @@ div.img-outer {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none; -webkit-touch-callout: none;
user-select: none; user-select: none;
-webkit-user-select: none;
pointer-events: none; pointer-events: none;
transition: border-radius 0.1s ease-in, transform 0.3s ease-in-out; transition: border-radius 0.1s ease-in, transform 0.3s ease-in-out;

View File

@ -74,6 +74,8 @@ export default defineComponent({
padding-top: 10px; padding-top: 10px;
padding-left: 3px; padding-left: 3px;
font-size: 0.9em; font-size: 0.9em;
user-select: none;
-webkit-user-select: none;
> div { > div {
position: relative; position: relative;

View File

@ -335,6 +335,7 @@ export default defineComponent({
.field { .field {
width: 4.1em; width: 4.1em;
display: inline-block; display: inline-block;
max-width: calc(20% - 4px);
} }
:deep label { :deep label {

View File

@ -141,11 +141,25 @@ export default defineComponent({
} }
@media (max-width: 512px) { @media (max-width: 512px) {
.memories-modal:deep .modal-wrapper > .modal-container { .memories-modal:deep {
max-height: calc(100% - var(--header-height)); .modal-header {
height: unset; display: none !important;
top: unset; }
bottom: 0;
.modal-wrapper > .modal-container {
max-height: calc(99% - env(keyboard-inset-height, 0px));
height: unset;
top: unset;
bottom: env(keyboard-inset-height, 0px);
// Hide scrollbar
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
width: 0 !important;
}
}
} }
} }
</style> </style>

View File

@ -252,5 +252,9 @@ ul.options {
:deep .avatar { :deep .avatar {
padding: 0 0.5em; padding: 0 0.5em;
} }
@media (max-width: 512px) {
font-size: 0.9em;
}
} }
</style> </style>

View File

@ -75,6 +75,11 @@ globalThis.videoClientId = getClientId();
globalThis.videoClientIdPersistent = localStorage.getItem('videoClientIdPersistent') ?? getClientId(); globalThis.videoClientIdPersistent = localStorage.getItem('videoClientIdPersistent') ?? getClientId();
localStorage.setItem('videoClientIdPersistent', globalThis.videoClientIdPersistent); localStorage.setItem('videoClientIdPersistent', globalThis.videoClientIdPersistent);
// Turn on virtual keyboard support
if ('virtualKeyboard' in navigator) {
(<any>navigator.virtualKeyboard).overlaysContent = true;
}
Vue.mixin(GlobalMixin as any); Vue.mixin(GlobalMixin as any);
Vue.use(VueVirtualScroller); Vue.use(VueVirtualScroller);
Vue.component('XImg', XImg); Vue.component('XImg', XImg);