This commit is contained in:
Rizky 2024-08-19 20:37:30 +07:00
parent ec1d7d6271
commit 60eaac4e84
2 changed files with 12 additions and 28 deletions

File diff suppressed because one or more lines are too long

View File

@ -177,7 +177,13 @@ export const Root = () => {
let mobileCSS = ""; let mobileCSS = "";
if (base.mode === "mobile") { if (base.mode === "mobile") {
if (["prasi.avolut.com", "localhost:4550"].includes(location.host)) { if (
!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
)
) {
// if page is mobile but device is not, frame the screen
mobileCSS = css` mobileCSS = css`
@media (min-width: 768px) { @media (min-width: 768px) {
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
@ -196,18 +202,6 @@ export const Root = () => {
overflow-y: auto; overflow-y: auto;
} }
`; `;
} else {
mobileCSS = css`
@media (min-width: 1600px) {
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
width: 375px;
top: 0px;
overflow-x: hidden;
overflow-y: auto;
bottom: 0px;
}
`;
} }
} }