Giter VIP home page Giter VIP logo

Comments (4)

Dylan-Brown avatar Dylan-Brown commented on May 24, 2024

I was able to recreate this issue on my Android Galaxy S2 phone. I can work on this.
What I notice is that on both the android and desktop versions, the box containing the share info seems to align on the right side of the link icon. My thought is that if it was reduced in width, say, to 2/3 (or around that value), that it would fit on the android screen?

screenshot_2016-10-03-10-53-43-2

from worldview.

Benjaki2 avatar Benjaki2 commented on May 24, 2024

@Dylan-Brown Sounds good. Could you make it responsive so that it stays the same size on desktop views and is a smaller width on mobile views?

from worldview.

Dylan-Brown avatar Dylan-Brown commented on May 24, 2024

@Benjaki2 I've looked at / played with the style attribute of this "

" element, and through some searching online, I haven't found a way to alter the in-line style of the element in a way that makes it responsive to the screen size.

I've thought about changing the wv.link.css file to include the style elements and seeing if there was a way to make the width dynamic from there, but that doesn't seem to be the approach with all of the other "major" divs, as they also use in-line style.

I think I lack perspective when it comes to web dev and am struggling to figure out how everything pieces together. Could you possibly point me to a resource that could explain this at a high level?

from worldview.

Benjaki2 avatar Benjaki2 commented on May 24, 2024

@Dylan-Brown you can find whether the device is under our break point width using this:

https://github.com/nasa-gibs/worldview/blob/master/web/js/util/wv.util.browser.js#L66

e.g. var mobile = ui.util.browser.small; // mobile will be true or false

from worldview.

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.