style(journal): иконки кнопок в виде «сетка» на Lucide
Те же глифы ✎/✦/× в gridEntryHTML() переведены на pencil/sparkles/trash-2. В admin.css добавлен .card .del svg в правило размера 16px — иначе иконка удаления отрисовалась бы в дефолтные 24px. Заод закрыты оба вида журнала: .journal-card (карточки) и .card (сетка).
This commit is contained in:
+1
-1
@@ -803,7 +803,7 @@ body[data-page=settings] .page-head{align-items:flex-end}
|
|||||||
.student-card__icon--badge{width:17px;height:17px}
|
.student-card__icon--badge{width:17px;height:17px}
|
||||||
.student-card__icon--ps{width:19px;height:19px}
|
.student-card__icon--ps{width:19px;height:19px}
|
||||||
.student-card :focus-visible{outline:2px solid var(--sc-primary);outline-offset:2px;border-radius:6px}
|
.student-card :focus-visible{outline:2px solid var(--sc-primary);outline-offset:2px;border-radius:6px}
|
||||||
.journal-card .foot .edit svg,.journal-card .foot .del svg,.card .edit svg{width:16px;height:16px;display:block}
|
.journal-card .foot .edit svg,.journal-card .foot .del svg,.card .edit svg,.card .del svg{width:16px;height:16px;display:block}
|
||||||
@media(max-width:420px){
|
@media(max-width:420px){
|
||||||
.report-overlay{padding:16px 12px}
|
.report-overlay{padding:16px 12px}
|
||||||
.student-card{
|
.student-card{
|
||||||
|
|||||||
@@ -163,9 +163,9 @@ function gridEntryHTML(e) {
|
|||||||
<div class="time">${fmtFull(e.created_at)}</div>
|
<div class="time">${fmtFull(e.created_at)}</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="edit" data-report="${e.id}" title="Карточка отчёта"><i data-lucide="contact"></i></button>
|
<button class="edit" data-report="${e.id}" title="Карточка отчёта"><i data-lucide="contact"></i></button>
|
||||||
<button class="edit" data-edit="${e.id}" title="Редактировать">✎</button>
|
<button class="edit" data-edit="${e.id}" title="Редактировать"><i data-lucide="pencil"></i></button>
|
||||||
${mp ? `<button class="edit" data-enhance="${e.id}" title="Улучшить фото">✦</button>` : ''}
|
${mp ? `<button class="edit" data-enhance="${e.id}" title="Улучшить фото"><i data-lucide="sparkles"></i></button>` : ''}
|
||||||
<button class="del" data-del="${e.id}" title="Удалить">×</button>
|
<button class="del" data-del="${e.id}" title="Удалить"><i data-lucide="trash-2"></i></button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user