|
|
@ -12,6 +12,7 @@ |
|
|
|
|
|
|
|
let selected: boolean; |
|
|
|
let completed: boolean; |
|
|
|
let deadline: boolean; |
|
|
|
|
|
|
|
function handleClick() { |
|
|
|
selectionStore.change("hash", project.id); |
|
|
@ -19,10 +20,11 @@ |
|
|
|
|
|
|
|
$: selected = $selectionStore.hash === project.id; |
|
|
|
$: completed = !project.active; |
|
|
|
$: deadline = !!project.endTime; |
|
|
|
</script> |
|
|
|
|
|
|
|
<StatusColor affects="project" entry={project} selected={selected}> |
|
|
|
<div class="ql-list-item" on:click={handleClick} class:selected> |
|
|
|
<div class="ql-list-item" on:click={handleClick} class:selected class:deadline={deadline}> |
|
|
|
<div class="icon sccfg" class:completed> |
|
|
|
<Icon block name={project.icon} /> |
|
|
|
</div> |
|
|
@ -52,6 +54,7 @@ |
|
|
|
|
|
|
|
color: #777; |
|
|
|
padding: 0.2em; |
|
|
|
padding-top: 0.3em; |
|
|
|
padding-bottom: 0.05em; |
|
|
|
|
|
|
|
cursor: pointer; |
|
|
@ -66,6 +69,9 @@ |
|
|
|
div.ql-list-item:hover { |
|
|
|
color: #ccc; |
|
|
|
} |
|
|
|
div.ql-list-item.deadline { |
|
|
|
padding-top: 0.275em; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
div.icon { |
|
|
|