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.

todo_widget: Move the `add-task-bar` from above to below the task list.

N-Shar-ma352e2ebc5a3d
diff --git a/web/styles/widgets.css b/web/styles/widgets.css
index 3d2ef6b8acf..701a60de594 100644
--- a/web/styles/widgets.css
+++ b/web/styles/widgets.css
@@ -67,6 +67,10 @@
}
}
}
+
+ .add-task-bar {
+ margin-bottom: 5px;
+ }
}
.todo-widget,
@@ -87,7 +91,7 @@
}
& ul {
- margin: 0 0 5px;
+ margin: 5px 0;
padding: 0;
}
diff --git a/web/templates/widgets/todo_widget.hbs b/web/templates/widgets/todo_widget.hbs
index 114b1826cc4..339519bbaf5 100644
--- a/web/templates/widgets/todo_widget.hbs
+++ b/web/templates/widgets/todo_widget.hbs
@@ -6,12 +6,12 @@
<button class="todo-task-list-title-remove"><i class="fa fa-remove"></i></button>
<button class="todo-task-list-title-check"><i class="fa fa-check"></i></button>
</div>
+ <ul class="todo-widget new-style">
+ </ul>
<div class="add-task-bar">
<input type="text" class="add-task" placeholder="{{t 'New task'}}" />
<input type="text" class="add-desc" placeholder="{{t 'Description'}}" />
<button class="add-task">{{t "Add task" }}</button>
<div class="widget-error"></div>
</div>
- <ul class="todo-widget new-style">
- </ul>
</div>
diff --git a/web/templates/widgets/todo_widget_tasks.hbs b/web/templates/widgets/todo_widget_tasks.hbs
index 53decfe9bd5..fcdf13160a3 100644
--- a/web/templates/widgets/todo_widget_tasks.hbs
+++ b/web/templates/widgets/todo_widget_tasks.hbs
@@ -1,4 +1,3 @@
-<br />
{{#each all_tasks}}
<li>
<label class="checkbox">