переработка диалогов (стили)
This commit is contained in:
1 parent
67314ce6e6
commit
3743db98b6
2 files changed
+7
-8
No files matched your search
@@ -310,6 +310,12 @@ a {
|
|||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-head h1 .pill {
|
||||||
|
vertical-align: middle;
|
||||||
|
font-size: 0.55em;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.page-subtitle {
|
.page-subtitle {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--color-text-muted);
|
color: var(--color-text-muted);
|
||||||
|
|||||||
@@ -5,18 +5,12 @@
|
|||||||
<div class="page-head">
|
<div class="page-head">
|
||||||
<div class="page-head-icon">{{ icons.chat() }}</div>
|
<div class="page-head-icon">{{ icons.chat() }}</div>
|
||||||
<div>
|
<div>
|
||||||
<h1>Диалоги</h1>
|
<h1>Диалоги {% if dialogs is not empty %}<span class="pill">{{ dialogs|length }}</span>{% endif %}</h1>
|
||||||
<p class="page-subtitle">Личные сообщения с другими пользователями</p>
|
<p class="page-subtitle">Личные сообщения с другими пользователями</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if isAuthorized %}
|
{% if isAuthorized %}
|
||||||
<div class="section">
|
|
||||||
<div class="section-title">
|
|
||||||
<h2>{{ icons.chat() }} Мои диалоги</h2>
|
|
||||||
{% if dialogs is not empty %}<span class="pill">{{ dialogs|length }} шт.</span>{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if dialogs is empty %}
|
{% if dialogs is empty %}
|
||||||
<div class="empty-state">
|
<div class="empty-state">
|
||||||
{{ icons.chat() }}
|
{{ icons.chat() }}
|
||||||
@@ -65,7 +59,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-error">{{ icons.warning() }}<span>Вы не авторизованы</span></div>
|
<div class="alert alert-error">{{ icons.warning() }}<span>Вы не авторизованы</span></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in new issue
Block a user