Use max-content for post items
This commit is contained in:
parent
4cdb16b2c1
commit
06bc705c00
1 changed files with 7 additions and 6 deletions
|
|
@ -1,15 +1,16 @@
|
|||
.posts {
|
||||
width: 70%;
|
||||
margin: 0 0 2% 20px;
|
||||
|
||||
width: 70%;
|
||||
|
||||
&__list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
list-style: none;
|
||||
|
||||
width: 95%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
&__item {
|
||||
|
|
@ -18,6 +19,8 @@
|
|||
|
||||
padding: 10px;
|
||||
|
||||
max-width: max-content;
|
||||
|
||||
&:first-child {
|
||||
padding: 0 10px 10px 10px;
|
||||
}
|
||||
|
|
@ -39,8 +42,6 @@
|
|||
}
|
||||
|
||||
&__header {
|
||||
width: 80%;
|
||||
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue