Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile scaling #29

Open
notangelmario opened this issue Jul 12, 2022 · 2 comments
Open

Mobile scaling #29

notangelmario opened this issue Jul 12, 2022 · 2 comments

Comments

@notangelmario
Copy link

Opening a liveterm website on a mobile device results in bad scaling, weird scrolling and zooming.

@tugibaasansuren
Copy link

Ya, it looks like scrolling & zooming are still sketchy.
I wonder what could be a fix...

@bigsk1
Copy link

bigsk1 commented Apr 25, 2023

Ya, it looks like scrolling & zooming are still sketchy. I wonder what could be a fix...

I just forked it yesturday one of the first things I did was fix mobile view cause like 80% are on mobile now, changed below code.

app.tsx

<Head>
  <meta
    name="viewport"
    content="initial-scale=1.0, width=device-width, viewport-fit=cover"
    key="viewport"
    maximum-scale="1"
     />
      </Head>

global.css

@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: 'Hack';
  src: url(/assets/fonts/Hack-NF.ttf);
  display: swap;
}

* {
  font-family: 'Hack', monospace;
}

html,
body,
body > div:first-child,
div#__next,
div#__next > div {
  height: 100%;
  overflow: auto;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  min-width: 3px;
  min-height: 3px;
}

::-webkit-scrollbar-track {
  background: #1e252e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #ebdbb2;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8037;
}

@media (max-width: 550px) {
  * {
    font-size: 0.945em;
  }
}

@media (max-width: 450px) {
  html,
  body,
  body > div:first-child,
  div#__next,
  div#__next > div {
    min-width: 425px;
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants