Improve manual duration mark

This commit is contained in:
Lukáš Kucharczyk 2023-01-05 23:10:42 +01:00
parent 5172c38c16
commit fd9bf8c026
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
3 changed files with 17 additions and 10 deletions

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10-slim-bullseye FROM python:3.10-slim-bullseye
ENV VERSION_NUMBER 0.1.0-44-g9c56ed4 ENV VERSION_NUMBER 0.1.0-45-g5172c38
ENV PROD 1 ENV PROD 1
RUN useradd --create-home --uid 1000 timetracker RUN useradd --create-home --uid 1000 timetracker

View File

@ -742,6 +742,10 @@ select {
margin-top: 1rem; margin-top: 1rem;
} }
.ml-1 {
margin-left: 0.25rem;
}
.block { .block {
display: block; display: block;
} }
@ -750,14 +754,14 @@ select {
display: flex; display: flex;
} }
.h-4 {
height: 1rem;
}
.h-5 { .h-5 {
height: 1.25rem; height: 1.25rem;
} }
.h-4 {
height: 1rem;
}
.min-h-screen { .min-h-screen {
min-height: 100vh; min-height: 100vh;
} }
@ -766,6 +770,10 @@ select {
width: 100%; width: 100%;
} }
.w-5 {
width: 1.25rem;
}
.w-7 { .w-7 {
width: 1.75rem; width: 1.75rem;
} }
@ -774,10 +782,6 @@ select {
width: 1rem; width: 1rem;
} }
.w-5 {
width: 1.25rem;
}
.max-w-screen-lg { .max-w-screen-lg {
max-width: 1024px; max-width: 1024px;
} }

View File

@ -27,7 +27,10 @@
{{ data.timestamp_end | date:"d/m/Y H:i" }} {{ data.timestamp_end | date:"d/m/Y H:i" }}
{% endif %} {% endif %}
</div> </div>
<div class="dark:text-slate-400">{{ data.duration_formatted }}{% if data.duration_manual %} (M){% endif %}</div> <div class="dark:text-slate-400 flex">{{ data.duration_formatted }}{% if data.duration_manual %} <svg title="Added manually" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5 ml-1 self-center">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd" />
</svg>
{% endif %}</div>
<div id="button-container" class="flex justify-end"> <div id="button-container" class="flex justify-end">
{% if data.unfinished %} {% if data.unfinished %}
<a href="{% url 'update_session' data.id %}"> <a href="{% url 'update_session' data.id %}">