un poquito mejor los estilos

webui
borja 2 weeks ago
parent 05900ef977
commit e34df4c370

@ -200,9 +200,8 @@
</script> </script>
<li class="task" class:completed> <li class="task" class:completed>
<div class="left"> <div class="code">#{codeStr}</div>
<span class="code">#{codeStr}</span> <div
<span
class="desc" class="desc"
class:editing={editingText} class:editing={editingText}
class:completed class:completed
@ -221,8 +220,9 @@
} else if (e.key === "Enter") { } else if (e.key === "Enter") {
e.preventDefault(); e.preventDefault();
} }
}}>{description}</span }}
> >
{description}
</div> </div>
<div class="meta"> <div class="meta">
@ -326,10 +326,10 @@
<style> <style>
.task { .task {
display: grid; display: grid;
grid-template-columns: 2fr 1fr; grid-template-columns: 1fr max-content;
grid-template-rows: max-content max-content; grid-template-rows: min-content max-content max-content;
grid-gap: 2px; grid-gap: 2px;
padding: 8px 0; padding: 4px;
border-bottom: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
position: relative; position: relative;
margin: 0 0 4px 0; margin: 0 0 4px 0;
@ -337,27 +337,22 @@
.task:last-child { .task:last-child {
border-bottom: 0; border-bottom: 0;
} }
.left {
display: inline-flex;
align-items: center;
gap: var(--space-2);
flex-wrap: wrap;
min-width: 0;
}
.code { .code {
font-weight: 600; font-weight: 600;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--color-text-muted); color: var(--color-text-muted);
font-family: monospace; font-family: monospace;
letter-spacing: 0.5px; letter-spacing: 0.5px;
position: absolute; grid-row: 1/2;
top: 0px; grid-column: 1/2;
left: 2px; }
.completed {
opacity: 0.5;
} }
.desc { .desc {
padding: 8px; padding: 8px;
grid-column: 1/2; grid-column: 1/3;
grid-row: 1/3; grid-row: 2/3;
} }
.desc.editing { .desc.editing {
@ -368,8 +363,9 @@
border-radius: 4px; border-radius: 4px;
white-space: normal; white-space: normal;
text-overflow: clip; text-overflow: clip;
grid-column: 2/3; grid-column: 1/3;
grid-row: 2/3; grid-row: 2/3;
margin: 16px 0;
} }
.desc.completed { .desc.completed {
text-decoration: line-through; text-decoration: line-through;
@ -378,6 +374,8 @@
justify-self: end; justify-self: end;
align-items: start; align-items: start;
gap: 8px; gap: 8px;
grid-row: 1/2;
grid-column: 2/3;
} }
.muted { .muted {
color: var(--color-text-muted); color: var(--color-text-muted);
@ -395,6 +393,7 @@
border-color: var(--color-warning); border-color: var(--color-warning);
} }
.assignees { .assignees {
grid-row: 3/4;
grid-column: 1/2; grid-column: 1/2;
text-align: left; text-align: left;
align-self: end; align-self: end;
@ -411,13 +410,13 @@
} }
.actions { .actions {
display: inline-flex; display: block;
gap: 6px; gap: 6px;
justify-self: end; justify-self: end;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
grid-column: 2/3; grid-column: 2/3;
grid-row: 2/3; grid-row: 3/4;
} }
.btn { .btn {
padding: 4px 8px; padding: 4px 8px;

Loading…
Cancel
Save