Code Monkey home page Code Monkey logo

Comments (23)

defeo avatar defeo commented on July 18, 2024 1

pushed to main

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024 1

I suppose so. I lost track of the subissues here, but whatever is left can be dealt with in separate issues.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

Does using visibility: collapse instead fix this? Seems like the answer

https://developer.mozilla.org/en-US/docs/Web/CSS/visibility

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

Fixed with the above trick

dc26dcd

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

:( thwarted by safari again: this draws all the whitespace vertically so the page becomes really long with no content. I'll have to play more.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

OK, so:

.hidden-row{
    visibility: collapse; 
    display: table-column;
}

Works on Safari, but display: table-column; then makes everything out of alignment on Firefox and Chrome...

I really dont want to start putting in JS/CSS hacks to only target certain browsers...

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024

Why would anyone use display: table-column on a row? Did you mean to use display: table-row?

According to caniuse, visibility: collapse is not even supposed to work on Chrome https://caniuse.com/mdn-css_properties_visibility_collapse. Strange thing it seems to work.

I suppose we'd better abandon visibility: collapse. It's a shame.

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024

isn't there a -apple-display property that only works on Safari? πŸ˜„ Seems not.

I suppose, unless we rewrite everything with grid, our only solution is display: none. Screw Apple!

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

Yeah I did think about just rewriting this a grid. It would also help with it being more responsive on mobile (you could have each row become a comment somehow?) but you would lose the ease of tables πŸ™ƒ

I have no idea why using the display as a column makes Apple wanna use collapse properly 🫠

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

So I had a free hour this morning, so I redid my HTML as grids.

This solves this issue, i think. Work done in branch subvariants-new-ui-compact-grid

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024

Great, thanks! I added a few touches, and merged back in a single file.

I tested on Firefox and Chrome. Do you confirm it renders nicely in Safari? If yes, we can merge this into subvariants, and then finally everything into main!

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

Maybe the indent for variants cramps the cell too much, but im happy either way.

Next TODO might be to do new CSS for mobile users but this can be done later.

πŸŽ‰ Looks as intended on safari:

Screenshot 2022-08-26 at 5 28 27 pm

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024

I suppose the indent can be reduced a bit

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

I'm not very experienced with grid but we could probably also set the last column (for comments) to be tighter as we know what content will be placed here (similar to how I did the small cell for the variant button.)

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024

There's lots of wasted space around the complexity columns too, but the thing with grid is that it's not good for much else than equally spaced columns. table was really ideal, such a shame that Safari can't handle it properly.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

I've just gone through and carefully laid out the columns, so I think it looks better.

This required setting the CSS for each grid, but I think that's ok considering the improvement

Screenshot 2022-08-26 at 10 19 22 pm

.

from issikebrokenyet.github.io.

defeo avatar defeo commented on July 18, 2024

With px units. Do you think this is robust enough?

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

I hope so, it plays ok with zooming, and I've just pushed another bunch of code to have a collapsed grid on mobile.

To help with the px, I also use minmax for when the screen starts to get small and other small improvements

Screenshot 2022-08-26 at 11 15 15 pm

Screenshot 2022-08-26 at 11 15 05 pm

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

The little mobile "cards" dont feel as stylish as the table, but I think they're easier to read and get information from

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

OK bedtime, but nicer cards

Screenshot 2022-08-26 at 11 33 28 pm

Edit: cleaned up a few bits of mess and supported cards in dark theme better

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

Just for context, currently on mobile (what's on main) the grid looks ugly. So getting this merged is fairly high priority I think.

image

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

Just tweaked a little more and I'm happy with how the design looks ok Firefox, Safari and Chrome (and hopefully mobile, if the emulator on Chrome was OK).

If you're happy, I suggest we merge to main to fix mobile experience :)

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on July 18, 2024

This can probably be closed now, right?

from issikebrokenyet.github.io.

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.