Conversation
problem_builder/dashboard.py
Outdated
There was a problem hiding this comment.
perhaps "No score yet"? "value" isn't as specific ("value for what?") whereas "score" or "problem score" is much more specific.
|
This is looking good to me. Please ping when there's a sandbox and I'll take a look there, and have Mark review your sr additions. |
f896b96 to
3e35510
Compare
There was a problem hiding this comment.
Why 1.875? If the goal is to make them square, shouldn't it be 2? 2 certainly looks more square when I try it.
There was a problem hiding this comment.
@Kelketek cell height is 21.6 + 2_3.2 (padding) + 2_1 (border) = 30. Font-size or line-height, or whatever is equal to 1em for the cell is 16px; 30/16 = 1.875;
I've started with 2em and doesn't look more square to me :)
UPD: I've checked it out in sandbox; body height is 23.6 now, so 2em is more square. But it definitely was 21.6 when I developed it; maybe LMS styles have changed recently - I'll update it.
|
@e-kolpakov Please consider the note I put about the border width, but 👍 . @sarina Links to the sandbox have been added in the PR description. |
|
@cptvitamin can you take a look at the a11y changes here? (you reviewed #16 a few days ago, this is the response) |
* All dashboard tables are 700px wide and centered * Color codes made square * "Average" row label made semi-bold (font-weight: 600)
…ole so it's hard to see which tests have failed and stacktraces
19251ea to
45b3609
Compare
There was a problem hiding this comment.
You might want to just consider defining some baseline variables then having sizes be relative to that (eg baseline/4, baseline/10 or whatever). That way you don't have to do fussy math all the time and worry that numbers like 1.875 are correct.
Perhaps a future improvement to think about.
|
👍 from me. |
|
👍 |
Presentation updates, part 2
Fixes and improvements:
** Use left alignment for text within the tables, which is currently shown centered<
** Apply the changes done to the table in the LMS: center the tables, use the same width for all tables (~700px - do not make it stretch to all available space, as widows can be big and it will look ugly), make the color codes squared, make the label for the "Average" row squarred
Sandbox: LMS, Studio
JIRA Ticket: OSPR-575
Merge deadline: preferably Friday, May 8 - this fixes are needed for course starting very soon.
Test instructions:
Observe the following: