Я появляюсь в конце последнего элемента отступа. Из-за ссылки на то, что указано для изображения. И я не знаю, как это решить.Как удалить пробел тайны под элементом списка
ul.ChatLog {
list-style: none;
}
.ChatLog {
height: 60px;
overflow: auto;
}
.ChatLog__entry {
display: flex;
flex-direction: row;
align-items: flex-start;
max-width: 100%;
margin: 0;
margin-bottom: 5px;
}
.ChatLog__entry:last-child {
margin-bottom: 0;
}
.ChatLog__avatar {
flex-shrink: 0;
flex-grow: 0;
z-index: 1;
height: 29px;
width: 29px;
border-radius: 3px;
}
.ChatLog__message {
flex: 1;
position: relative;
margin: 0 0 0 12px;
background-color: #000;
padding: 7px;
color: #fff;
font-size: 12px;
}
.ChatLog__message:before {
position: absolute;
right: auto;
top: .6em;
left: -12px;
height: 0;
content: '';
border: 6px solid transparent;
border-right-color: #ddd;
z-index: 2;
}
<ul class="ChatLog">
<li class="ChatLog__entry">
<div class="ChatLog__avatar"><a class="" href=""><img src="//placekitten.com/g/29/29" /></a></div>
<p class="ChatLog__message">
Hello!
<time class="ChatLog__timestamp">6 minutes ago</time>
</p>
</li>
<li class="ChatLog__entry">
<div class="ChatLog__avatar"><a class="" href=""><img src="//placekitten.com/g/29/29" /></a></div>
<p class="ChatLog__message">
What is going on here?
<time class="ChatLog__timestamp">5 minutes ago</time>
</p>
</li>
<li class="ChatLog__entry">
<div class="ChatLog__avatar"><a class="" href=""><img src="//placekitten.com/g/29/29" /></a></div>
<p class="ChatLog__message">
I
<time class="ChatLog__timestamp">3 minutes ago</time>
</p>
</li>
</ul>
Я сделал скриншот, чтобы проиллюстрировать. link
Я был бы очень признателен за любые советы, спасибо!
удалить краю дна: 5px; на Chatlog__entry –