Skip to content

Commit 2ae5b7c

Browse files
committed
better homework item sizing
1 parent 6c340b3 commit 2ae5b7c

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

public/assets/styles/css/list.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/assets/styles/scss/list.scss

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
min-height: 60px;
1919
display: flex;
2020
flex-direction: row;
21-
align-items: space-between;
21+
align-items: center;
2222
gap: 10px;
2323
padding: 10px;
2424
border-bottom: 1px solid $border-color;
@@ -32,29 +32,48 @@
3232
text-align: left;
3333
border: 0;
3434
padding: 0;
35-
width: 100%;
3635
margin: 0;
37-
box-sizing: border-box;
38-
39-
40-
36+
box-sizing: border-box;
37+
justify-content: center;
38+
max-height: min-content;
4139

4240
p,
4341
strong {
4442
text-align: left;
4543
width: 100%;
44+
justify-self: center;
45+
min-width: 0;
46+
margin: 0;
4647
}
4748
}
4849

49-
p,
50-
strong,
50+
51+
52+
5153
div {
5254
margin: auto 0;
53-
width: calc((100% - 25px) / 3);
55+
flex: 0 1 0;
56+
min-width: fit-content;
5457
text-align: center;
5558
overflow: hidden;
5659
}
5760

61+
.hw-desc {
62+
margin: auto 0;
63+
flex: 1 1 0;
64+
text-align: right;
65+
padding-right: 20px;
66+
}
67+
68+
.hw-dueDate {
69+
margin: auto 0;
70+
text-align: right;
71+
flex: 0 0 auto;
72+
white-space: nowrap;
73+
min-width: max-content;
74+
align-self: flex-end;
75+
}
76+
5877
p, strong {
5978
white-space: wrap;
6079
text-overflow: ellipsis;

0 commit comments

Comments
 (0)