Skip to content

Commit a6f16cd

Browse files
committed
Update ItemWithCounter layout and sizing styles
Changed .item-with-counter to use flexbox for centering, set explicit width and height, and adjusted image sizing to use auto width and 100% height. Also updated positioning for .item-times class.
1 parent b070900 commit a6f16cd

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/Components/common/styles/ItemWithCounter.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11

22

33
.item-with-counter {
4-
display: block;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
57
position: relative;
8+
width: 2.5rem !important;
9+
height: 2.5rem !important;
610
}
711

812
.item-with-counter p {
@@ -13,7 +17,7 @@
1317

1418
&.item-times {
1519
position: absolute;
16-
bottom: 5px;
20+
bottom: 0rem;
1721
right: 0;
1822
}
1923
&.item-unknown {
@@ -26,8 +30,8 @@
2630
}
2731

2832
.item-with-counter img {
29-
width: 2.5rem !important;
30-
height: 2.5rem !important;
33+
width: auto !important; ;
34+
height: 100% !important; ;
3135

3236
&.done {
3337
filter: grayscale(0) brightness(1) !important;

0 commit comments

Comments
 (0)