Skip to content

Commit f7451b8

Browse files
committed
patch: sizing and overflow issues on homework item text
1 parent f23c881 commit f7451b8

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
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: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,49 @@
1515
#uncompleted-homework,
1616
#completed-homework {
1717
div {
18-
height: 60px;
18+
min-height: 60px;
1919
display: flex;
2020
flex-direction: row;
21-
align-items: center;
21+
align-items: space-between;
22+
gap: 10px;
2223
padding: 10px;
2324
border-bottom: 1px solid $border-color;
2425
background-color: $background-card;
2526
color: $text-primary;
27+
justify-items: center;
2628

2729
div {
2830
display: flex;
2931
flex-direction: column;
3032
text-align: left;
31-
align-items: flex-start;
32-
justify-content: flex-start;
3333
border: 0;
3434
padding: 0;
35-
padding-top: 10px;
36-
padding-left: 10px;
35+
width: 100%;
36+
margin: 0;
37+
box-sizing: border-box;
38+
39+
40+
3741

3842
p,
3943
strong {
4044
text-align: left;
45+
width: 100%;
4146
}
4247
}
4348

4449
p,
4550
strong,
4651
div {
52+
margin: auto 0;
4753
width: calc((100% - 25px) / 3);
4854
text-align: center;
55+
overflow: hidden;
56+
}
57+
58+
p, strong {
59+
white-space: wrap;
60+
text-overflow: ellipsis;
4961
}
5062

5163
button {
@@ -59,7 +71,7 @@
5971
color: white;
6072
font-size: 1rem;
6173
font-weight: 900;
62-
margin: 5px;
74+
margin: auto 0;
6375
display: flex;
6476
align-items: center;
6577
justify-content: center;

0 commit comments

Comments
 (0)