Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

widgets: Fix line wrapping of todo descriptions.

SantamRC373f700736f2
diff --git a/static/styles/widgets.css b/static/styles/widgets.css
index 27c139c825c..e98c473bcd4 100644
--- a/static/styles/widgets.css
+++ b/static/styles/widgets.css
@@ -24,6 +24,11 @@
input.add-desc {
margin-left: 2px;
}
+
+ /* Arrange that a multi-line description line wraps properly. */
+ label.checkbox {
+ display: flex;
+ }
}
.todo-widget,
diff --git a/static/templates/widgets/todo_widget_tasks.hbs b/static/templates/widgets/todo_widget_tasks.hbs
index 664d2ada24a..0785a7124d9 100644
--- a/static/templates/widgets/todo_widget_tasks.hbs
+++ b/static/templates/widgets/todo_widget_tasks.hbs
@@ -2,9 +2,13 @@
{{#each pending_tasks}}
<li>
<label class="checkbox">
- <input type="checkbox" class="task" data-key="{{ key }}" />
- <span></span>
- <strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}
+ <div>
+ <input type="checkbox" class="task" data-key="{{ key }}" />
+ <span></span>
+ </div>
+ <div>
+ <strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}
+ </div>
</label>
</li>
@@ -12,8 +16,10 @@
{{#each completed_tasks}}
<li>
<label class="checkbox">
- <input type="checkbox" class="task" data-key="{{ key }}" checked="checked"/>
- <span></span>
+ <div>
+ <input type="checkbox" class="task" data-key="{{ key }}" checked="checked"/>
+ <span></span>
+ </div>
<strike><em><strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}</em></strike>
</label>
</li>