Skip to content

Commit 2de64a2

Browse files
Fixes #177: Added light theme and improved overall UI
1 parent 7ee38e4 commit 2de64a2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

projects/todo/styles.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,12 @@ li:hover {
180180
label {
181181
display: flex;
182182
align-items: center;
183-
gap: 0.75rem;
183+
gap: 1rem; /* slightly larger gap between checkbox and text */
184184
cursor: pointer;
185185
flex: 1;
186186
margin: 0;
187187
padding: 2px 0;
188+
min-width: 0; /* allow label to shrink in flex layout */
188189
}
189190

190191
/* Improved: Checkbox alignment */
@@ -224,7 +225,10 @@ label span::after {
224225
/* Improved: Text alignment */
225226
label span {
226227
flex: 1;
227-
word-break: break-word;
228+
min-width: 0; /* allow ellipsis when the container is narrow */
229+
overflow: hidden;
230+
text-overflow: ellipsis;
231+
white-space: nowrap; /* keep a single-line summary to maintain even spacing */
228232
line-height: 1.4;
229233
padding: 2px 0;
230234
}
@@ -252,6 +256,9 @@ li.done label span::after { transform: scaleX(1); }
252256
transition: background-color 0.2s;
253257
}
254258

259+
/* Ensure delete button stays at the far right and spacing is even */
260+
.del { margin-left: auto; }
261+
255262
.del:hover {
256263
background: #dc2626;
257264
}

0 commit comments

Comments
 (0)