Giter VIP home page Giter VIP logo

Comments (10)

djwhitt avatar djwhitt commented on May 14, 2024 1

Another thought, the abbreviations (P and A) are probably necessary to keep the size from getting out of control, but they should use the "abbr" tag so users can get an explanation if they hover.

from zetawar.

tbeddy avatar tbeddy commented on May 14, 2024

Thoughts on something like this? Each unit's stats are displayed in a small table in a collapsible panel.

screen shot 2017-03-23 at 12 10 11 am

from zetawar.

tbeddy avatar tbeddy commented on May 14, 2024

Here's an updated version with more stats. I include the text "P = Personnel" and "A = Armored" at the bottom of the modal's body for clarity.

screen shot 2017-03-27 at 8 59 09 pm

I think it looks nice with this much info, but adding more would probably get ugly (if sticking with the React-Boostrap table-in-a-panel-in-a-column-in-a-row-in-a-grid format I'm using). Maybe using a button to open the panel beneath the unit's image/name/cost would be better, as it would allow each table to span the entire modal and give the stats room to breath.

from zetawar.

djwhitt avatar djwhitt commented on May 14, 2024

I like the idea, but there's a lot of header repetition. What about putting all the units in one table with headers at the top?

from zetawar.

tbeddy avatar tbeddy commented on May 14, 2024

Is this closer to what you were thinking? Or were you thinking of keeping the clickable part outside of the table?

screen shot 2017-03-30 at 9 27 55 pm

from zetawar.

djwhitt avatar djwhitt commented on May 14, 2024

Yep, that's what I was thinking. I'm fine with the clickable part being inside the table.

from zetawar.

tbeddy avatar tbeddy commented on May 14, 2024

Thoughts on style?

Hovering over the type will give the full name, and hovering over the armor value will either give the capturing armor value or say that the unit cannot capture bases.

screen shot 2017-04-01 at 10 53 16 pm

from zetawar.

djwhitt avatar djwhitt commented on May 14, 2024

The hover text sounds good, but the different size fonts in the stats cells look a little off to me. I think consistency is probably better even if it makes the table a bit sparse. For the ranges, I prefer "1-2" to "Min:1 Max:2". It would also be nice if the table column width was consistent. You should be able to accomplish that using the Bootstrap grid CSS classes (col-md-4, etc.).

from zetawar.

Conaws avatar Conaws commented on May 14, 2024

from zetawar.

djwhitt avatar djwhitt commented on May 14, 2024

This is on dev now. I think there are more tweaks we could do, but I'm going to call it "good enough" for now.

@Conaws Thanks for the css grid spec link! I plan to revisit the styling on this at some point. I'll definitely look into that when I do.

from zetawar.

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.