Skip to content

Commit 094f721

Browse files
committed
Additional CSS fixes for the todo
1 parent 80ca31e commit 094f721

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Fritz.StreamTools/Pages/ToDo.cshtml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
this._hub.on("project_update", (text) => {
5454
if (debug) console.debug(`Project update: ${text}`, null);
5555
document.querySelector("h4").innerText = text;
56+
ConfigureScroll();
5657
});
5758
5859
this._hub.on('todo_new', (id, text) => {
@@ -102,8 +103,13 @@
102103
103104
this.ConfigureScroll = function () {
104105
console.log(`todos: ${todos.scrollHeight} ,project ${projectTitle.offsetHeight}`);
105-
if (todosClone != null) container.removeChild(todosClone);
106-
if (myStylesheet) myStylesheet.sheet.deleteRule(0); // stop scrolling
106+
if (todosClone != null) {
107+
container.removeChild(todosClone);
108+
todosClone = null;
109+
}
110+
if (myStylesheet) try {
111+
myStylesheet.sheet.deleteRule(0); // stop scrolling
112+
} catch (e) {}
107113
108114
if (todos.scrollHeight + projectTitle.scrollHeight > 265) {
109115
@@ -143,8 +149,6 @@
143149
144150
};
145151
146-
ConfigureScroll();
147-
148152
this._hub.start();
149153
150154
})();

Fritz.StreamTools/wwwroot/css/site.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ input[type=color] {
161161
list-style-type: none;
162162
position: relative;
163163
margin: 0;
164-
height: 100%;
164+
/* height: 100%;*/
165165
padding: 2px;
166166
}
167167

@@ -173,7 +173,7 @@ input[type=color] {
173173
overflow: hidden;
174174
position: relative;
175175
width: 270px;
176-
min-height: 230px;
176+
min-height: 200px;
177177
}
178178

179179
#checklistContainer ul {

Fritz.StreamTools/wwwroot/css/site.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)