Skip to content

Commit be171ee

Browse files
committed
Fix: Sort div bottom #7
1 parent 6a2e7d8 commit be171ee

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/App.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,17 +608,15 @@ handleUnpinNote = async (noteid) => {
608608
handleSearchNotes={this.handleSearchNotes}
609609
/>
610610

611-
{/* Render pinned notes separately */}
612611
<h4 className="fixed-header">Pinned Notes</h4>
613-
<ul className="note-list-pin">
612+
<div className="note-list-pin">
614613
{pinnedNoteListItems}
615-
</ul>
614+
</div>
616615

617-
{/* Render unpinned notes separately */}
618616
<h4 className="fixed-header">Other Notes</h4>
619-
<ul className="note-list-other">
617+
<div className="note-list-other">
620618
{otherNoteListItems}
621-
</ul>
619+
</div>
622620

623621
<NoteSort
624622
handleSortNotes={this.handleSortNotes}

src/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ input[type="search"]::-webkit-search-cancel-button {
226226

227227
/* Note List Container*/
228228
.note-list-pin {
229-
max-height: 300px; /* Set the desired maximum height */
230-
overflow-y: scroll; /* Enable vertical scrolling */
229+
height: 270px; /* Set the desired maximum height */
230+
overflow-y: auto; /* Enable vertical scrolling */
231231
margin: 10px 0; /* Add margin for spacing */
232232
padding-left: 0;
233233
list-style: none; /* Remove default list styles */
@@ -236,7 +236,7 @@ input[type="search"]::-webkit-search-cancel-button {
236236

237237
/* Note List Container*/
238238
.note-list-other {
239-
overflow-y: scroll; /* Enable vertical scrolling */
239+
overflow-y: auto; /* Enable vertical scrolling */
240240
margin: 10px 0; /* Add margin for spacing */
241241
padding-left: 0;
242242
list-style: none; /* Remove default list styles */

0 commit comments

Comments
 (0)