Giter Site home page Giter Site logo

Comments (14)

dionyziz avatar dionyziz commented on September 26, 2024

You can close the modal by clicking on the dark background. Please git pull, this is in one of the latest patches.

You're right, this is not optimal usability. We should look into adapting modal size to screen resolution and work towards adopting a more flexible user interface.

from twister-html.

toyg avatar toyg commented on September 26, 2024

@dionyziz should we close this for now then?

from twister-html.

dionyziz avatar dionyziz commented on September 26, 2024

No, let's keep it open. It's a bug that needs to be addressed.

from twister-html.

BlockTester avatar BlockTester commented on September 26, 2024

@dionyziz +1

from twister-html.

BlockTester avatar BlockTester commented on September 26, 2024

I don't seem to have the patch for clicking the background (or 'esc'?), could we merge this to the master?

from twister-html.

toyg avatar toyg commented on September 26, 2024

I think that patch was reverted because it was giving problems in some places.

from twister-html.

rbertoche avatar rbertoche commented on September 26, 2024

Would that "click away to close" patch solve this? Or it would be too ugly?

from twister-html.

BlockTester avatar BlockTester commented on September 26, 2024

@rbertoche no it's the proper solution and esc key should also be added, but as mentioned the patch was reverted as it caused some other bug, another patch needs to be written or the bug ironed out.

from twister-html.

toyg avatar toyg commented on September 26, 2024

ok, previews of what the modal looks like after my fixes... note that the modal is now positioned from the top of the screen, so the top bar will always be visible regardless of resolution. The "Posts" number has actually been pushed to the right like it appears in the "single line" screenshot, I just couldn't be bothered to re-take the others...

Full profile:
screen shot 2014-01-23 at 16 05 27

Two lines:
screen shot 2014-01-23 at 16 06 24

Single line:
screen shot 2014-01-23 at 16 27 48

No image:
screen shot 2014-01-23 at 16 05 55

from twister-html.

iShift avatar iShift commented on September 26, 2024

IMHO, we need full page for profiles not only modal windows and on small screen we can show full profile pages

from twister-html.

toyg avatar toyg commented on September 26, 2024

That's a good point. However, one issue with fullscreen profiles is navigational speed/usability... Because of postboard/post sync not working properly, most people are currently forced to check profiles one by one to see recent messages. If each profile is a page refresh, it takes twice the time, and you also have to think about a new solution for navigation from one profile to the next. I just wouldn't do it until the timeline bug is fixed; I'd rather somebody approximated the effect by reworking following.html, which tbh has to be done anyway.

The idea behind this change was just to make the current modal a bit more flexible, allowing people with smaller screens to actually close it. I'd merge this as a bug fix, waiting for more substantial changes further down the line (this is just playing with CSS, really). But I'm waiting for @miguelfreitas to sanction it :)

from twister-html.

BlockTester avatar BlockTester commented on September 26, 2024

@toyg 👍 good stuff! I didn't test it yet but from the screenshots it's very nice :)

@iShift different issue.

from twister-html.

rbertoche avatar rbertoche commented on September 26, 2024

I looked at your patch. It's really looking nice -except for me hater of radius at photos- and far more compact.

Can't get this random padding off from the bottom of the modal, though. That's why it was done with absolute pixel sizing - which was worse. As both their height are set in percentages of the page, postboard and it's scrollbar can't follow modal borders correctly upon window resize.
Sometimes the postboard's larger than the dialog and hides partially, or instead a white padding is seen at the bottom. It would be marvelous to be able to use a percentage of the parent div, instead of the entire page.

Is it really impossible to allow overflow handling without having to set height? To somehow use all avaiable space from another div that has a set height?
I'm almost suggesting css edition from js - setting heights inside the modal based on page size in pixels.

from twister-html.

rbertoche avatar rbertoche commented on September 26, 2024

twiter 20-1000
twiter 20-600

I tried a bit, messed with a lot of code, but only got to move the padding to another place. Though it got really nice on a 600px tall window, on a 1000px> it looks like a gargoyle.

The only real gain was that now it can't hide any texts, at any window height.

The idea was to get 2 separated "modal dialogs". That way the second one has height and overflow: auto.
I forked and pushed to my clone on github, if you wanna take a look.

from twister-html.

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.