fix: refine task card header spacing
This commit is contained in:
@@ -433,8 +433,37 @@ p {
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.task-card__top {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__title-block {
|
||||||
|
display: grid;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__top > div:first-child,
|
||||||
|
.task-card__title-block {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__title-block .chip-row {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__top .icon-button {
|
||||||
|
align-self: flex-start;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.task-card h3 {
|
.task-card h3 {
|
||||||
font-size: 1.35rem;
|
font-size: 1.35rem;
|
||||||
|
line-height: 1.08;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
hyphens: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.task-card--compact {
|
.task-card--compact {
|
||||||
@@ -1252,6 +1281,35 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
.task-card {
|
||||||
|
gap: 14px;
|
||||||
|
padding: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__top {
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__title-block {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__title-block .chip-row {
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card__top .icon-button {
|
||||||
|
width: 44px;
|
||||||
|
min-width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
border-radius: 14px;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-card h3 {
|
||||||
|
font-size: 1.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
.form-panel h2 {
|
.form-panel h2 {
|
||||||
font-size: 1.85rem;
|
font-size: 1.85rem;
|
||||||
line-height: 1.08;
|
line-height: 1.08;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
{% macro task_card(task, current_user, compact=false) -%}
|
{% macro task_card(task, current_user, compact=false) -%}
|
||||||
<article class="task-card {% if compact %}task-card--compact{% endif %}">
|
<article class="task-card {% if compact %}task-card--compact{% endif %}">
|
||||||
<div class="task-card__top">
|
<div class="task-card__top">
|
||||||
<div>
|
<div class="task-card__title-block">
|
||||||
<div class="chip-row">
|
<div class="chip-row">
|
||||||
{{ status_badge(task) }}
|
{{ status_badge(task) }}
|
||||||
<span class="point-pill">{{ task.points_awarded }} Punkte{% if task.is_shared_assignment %} / Person{% endif %}</span>
|
<span class="point-pill">{{ task.points_awarded }} Punkte{% if task.is_shared_assignment %} / Person{% endif %}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user