Coder Social home page Coder Social logo

Viewport scale is not set about openfga.dev HOT 5 CLOSED

openfga avatar openfga commented on July 21, 2024
Viewport scale is not set

from openfga.dev.

Comments (5)

matthewpereira avatar matthewpereira commented on July 21, 2024

@adriantam @rhamzeh do you happen to know if we need to use https://docusaurus.io/docs/api/docusaurus-config#ssrTemplate to set a viewport meta property for the site's theme?

from openfga.dev.

rhamzeh avatar rhamzeh commented on July 21, 2024

@matthewpereira do you want to set or change it? The current value on https://openfga.dev is
<meta name="viewport" content="width=device-width,initial-scale=1">

from openfga.dev.

matthewpereira avatar matthewpereira commented on July 21, 2024

Interesting - I must have missed that. Is there a different property that locks the viewport width/scale to avoid the zoomed-out effect in the screenshots above?

I'm hesitant to use user-scalable=no as I think that restricts zooming in, but maybe min-scale=1 would stop folks from zooming out. 🤔

Or maybe this just isn't really a problem.

from openfga.dev.

matthewpereira avatar matthewpereira commented on July 21, 2024

Some additional evidence:
image

Users can zoom out or scroll to the right - if the viewport scale isn't the problem, then maybe we have an element that isn't sized correctly to fit the viewport.

from openfga.dev.

adriantam avatar adriantam commented on July 21, 2024

Figured out what is the issue - it is caused by margin set to -1.75 for resources section (https://github.com/openfga/openfga.dev/blob/main/src/features/LandingPage/ResourcesSection/ResourcesSection.module.css#L15). This causes issue if the width is very small.

from openfga.dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.