Skip to content

Commit 4bb0840

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ 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 */
226225
padding-left: 0;
227226
list-style: none; /* Remove default list styles */
228-
margin-bottom: 20px; /* Add space between lists */
227+
margin-bottom: 10px; /* Add space between lists */
228+
overflow-y: visible; /* Ensure the div expands to fit its contents */
229229
}
230230

231231
/* Note List Container*/

0 commit comments

Comments
 (0)