Skip to content

Commit cd3cd01

Browse files
committed
Fix(overflow)
+ Note screen can now go fullscreen + Note text's overflow bug is fixed + centering of the note div + Icons are now working (I think ?) + Tag Color is now stored when you change it by clicking.
1 parent 33eab8d commit cd3cd01

File tree

6 files changed

+38
-7
lines changed

6 files changed

+38
-7
lines changed

css/newstyle.css

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ section h1 {
227227
overflow-y: visible;
228228
overflow-x: hidden;
229229
}
230+
/*Firefox config */
231+
.containerimportanttodos {
232+
scrollbar-width: thin;
233+
scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
234+
235+
}
236+
230237
.containerimportanttodos::-webkit-scrollbar {
231238
width: 6px;
232239
/* Largeur de la scrollbar */
@@ -394,23 +401,32 @@ section h1 {
394401
width: 70%;
395402
height: 70vh;
396403
position: absolute;
397-
top: 15vh;
398-
left: 25vh;
404+
top: 50%;
405+
left: 50%;
406+
transform: translate(-50%, -50%);
407+
408+
transition: all 0.2s linear;
399409

400410
z-index: 100;
401411
}
412+
.editorcontainer.big {
413+
width: 100%;
414+
height: 100%;
415+
transition: all 0.2s linear;
416+
}
402417

403418

404419
.flexcontaineredit {
405420
display: flex;
406421
justify-content: space-between;
407422
padding: 20px;
423+
gap: 10px;
408424
}
409425
.notetitleeditor {
410-
411426
width: 50%;
412427
background-color: transparent;
413428
border: none;
429+
flex: 1;
414430
}
415431
.notetitleeditor:focus {
416432
text-decoration: underline 1px black;
@@ -441,4 +457,9 @@ section h1 {
441457
border-radius: 5px;
442458
user-select: none;
443459
cursor: pointer;
460+
}
461+
.fullscreenote {
462+
background-color: transparent;
463+
border: none;
464+
font-size: 2rem;
444465
}

css/quillstyle.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
.ql-container {
22
border: none !important;
3+
overflow-y: auto;
34

45
}
56
.ql-editor {
6-
77
border: none;
8+
word-wrap: break-word;
9+
overflow-wrap: break-word;
810
}
911
.ql-toolbar.ql-snow {
1012
border: none !important;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flyingtodo",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "A TODO list application to learn JS, that I will maybe continue later.",
55
"main": "main.js",
66
"scripts": {

script/newscript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ function displayTags() {
244244
tag.color = randomColorTags();
245245
console.log('Changed color of the tag!');
246246
displayTags();
247+
localStorage.setItem('alltags', JSON.stringify(allTags));
247248
});
248249
});
249250
};

script/notes.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function refreshNoteList() {
8181
noteContainer.append(notediv);
8282

8383
const notedelbtn = notediv.querySelector('.notedelbtn');
84-
84+
8585
notedelbtn.onclick = () => removeNote(note.id, notediv)
8686
});
8787
};
@@ -115,6 +115,12 @@ const closenotebutton = document.getElementById('closenotebutton');
115115
closenotebutton.addEventListener('click', () => {
116116
closeEditor();
117117
});
118+
const editorcontainer = document.querySelector('.editorcontainer');
119+
const fullscreenote = document.querySelector('.fullscreenote');
120+
121+
fullscreenote.addEventListener('click', () => {
122+
editorcontainer.classList.toggle("big");
123+
});
118124

119125

120126
// * Title saving

templates/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
rel="stylesheet"
2020
/>
2121

22-
<link rel="icon" href="../img/icons8-check-mark-48.png" />
22+
<link rel="icon" href="../img/iconflyingtodovraie.ico" />
2323

2424
<!-- * Quill && Dexie.js Library-->
2525

@@ -102,6 +102,7 @@ <h1>Reset todos:</h1>
102102
placeholder="Placeholder"
103103
maxlength="20"
104104
/>
105+
<button class="fullscreenote"></button>
105106
<button class="closenotebutton" id="closenotebutton"></button>
106107
</div>
107108
<div class="editor" id="editor">

0 commit comments

Comments
 (0)