Skip to content

Commit

Permalink
UI update, highlight due column of task if due date is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tmahmood committed Jul 28, 2024
1 parent 8a9df61 commit 8052816
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Mon 29, 2024 03:05
- [x] Highlighting due column of a task if due

## Mon 29, 2024
- [x] [BUG] Mnemonic tag in the last row in task selection mode getting cut

Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fn main() {
}
// adding templates
if !Command::new("cp")
.args(["-r", "frontend/templates", "dist/templates"])
.args(["-r", "frontend/templates", "dist/"])
.status().unwrap().success() {
panic!("Failed to copy fonts")
panic!("Failed to copy template files")
}
}
8 changes: 5 additions & 3 deletions frontend/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ body {
.table-large tr {
@apply
font-medium even:bg-neutral-600


;
}

.table-large tr.active-task {
@apply bg-green-700 text-green-200;
}

.table-large td .is_due {
@apply text-amber-50 font-bold bg-yellow-900 rounded-sm px-1;
}

.table-small {
@apply text-xs p-2;
}
Expand Down Expand Up @@ -256,4 +258,4 @@ body {


#toast {
}
}
12 changes: 7 additions & 5 deletions frontend/templates/tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@
{% for task in tasks %}
{% set status_color = on_all %}
{% if task.status == 'pending' %}
{% set status_color = on_pending %}
{% set status_color = on_pending %}
{% elif task.status == 'complete' %}
{% set status_color = on_complete %}
{% set status_color = on_complete %}
{% elif task.status == 'waiting' %}
{% set status_color = on_waiting %}
{% set status_color = on_waiting %}
{% endif %}
<tr {%if task.start %} class="active-task" {% endif %}>
<tr class="{%if task.start %} active-task {% endif %}">
<td>
<div class="checkbox-wrapper-32">
<input
Expand Down Expand Up @@ -325,7 +325,9 @@
</td>
<td>
{% if task.due and task.status != 'completed' %}
{{ date_proper(date=task.due, in_future=true) }}
<span class="is_due">
{{ date_proper(date=task.due, in_future=true) }}
</span>
{% endif %}
</td>

Expand Down

0 comments on commit 8052816

Please sign in to comment.