Skip to content

Commit 1cadd5b

Browse files
fix: make nostr modal scrolable
1 parent 3ba9ad1 commit 1cadd5b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/views/Export/Nostr.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,9 @@ export default {
703703
bottom: 0;
704704
z-index: 2000;
705705
display: flex;
706-
align-items: center;
706+
align-items: flex-start; /* Changed from center to flex-start */
707707
justify-content: center;
708+
padding: 1rem; /* Add padding for small screens */
708709
}
709710
710711
.modal-backdrop {
@@ -720,11 +721,15 @@ export default {
720721
position: relative;
721722
width: 90%;
722723
max-width: 600px;
724+
max-height: 90vh; /* Limit height to 90% of viewport height */
723725
background-color: #fff;
724726
border-radius: 8px;
725727
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
726728
overflow: hidden;
727729
z-index: 2001;
730+
margin: 2rem 0; /* Add margin top/bottom */
731+
display: flex;
732+
flex-direction: column; /* Add flex layout */
728733
}
729734
730735
.modal-header {
@@ -737,6 +742,8 @@ export default {
737742
738743
.modal-body {
739744
padding: 1.5rem;
745+
overflow-y: auto; /* Make the body scrollable */
746+
flex: 1; /* Allow body to take remaining space */
740747
}
741748
742749
.nostr-actions {

0 commit comments

Comments
 (0)