Skip to content

Commit d94d5e7

Browse files
committed
Fix: Increase Number of Pinned Notes to 10
1 parent 9ed6463 commit d94d5e7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class App extends Component {
8484

8585
// Pin a note and persist
8686
handlePinNote = async (noteid) => {
87-
if (this.state.pinnedNotes.length >= 5) {
88-
alert("You can only pin up to 5 notes.");
87+
if (this.state.pinnedNotes.length >= 10) {
88+
alert("You can only pin up to 10 notes.");
8989
return;
9090
}
9191
await this.handleIndexedDB("addpin", { noteid });

src/styles.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,12 @@ input[type="search"]::-webkit-search-cancel-button {
221221

222222
/* Note List Container*/
223223
.note-list-pin {
224-
height: 245px; /* Set the desired maximum height */
225224
margin: 10px 0; /* Add margin for spacing */
225+
min-height: 50px;
226226
padding-left: 0;
227227
list-style: none; /* Remove default list styles */
228-
margin-bottom: 20px; /* Add space between lists */
228+
margin-bottom: 10px; /* Add space between lists */
229+
overflow-y: visible; /* Ensure the div expands to fit its contents */
229230
}
230231

231232
/* Note List Container*/

0 commit comments

Comments
 (0)