Skip to content

Commit 37d5656

Browse files
Copilotmikebarkmin
andcommitted
Fix mobile layout and help dialog issues
- Changed help dialog from position: absolute to fixed with z-index: 1000 - Changed welcome message from height: 100% to min-height: 100% - Added overflow-y: auto to welcome message for scrollability - Added responsive CSS for mobile devices (max-width: 640px) - Reduced font sizes and padding on mobile - Made buttons full width on mobile - Added box-sizing and width management for better responsiveness Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
1 parent 3553d54 commit 37d5656

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

packages/learningmap/src/index.css

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,14 @@ dialog.help[open] {
553553
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
554554
padding: 24px;
555555
background: white;
556-
position: absolute;
556+
position: fixed;
557557
top: 50%;
558558
left: 50%;
559559
transform: translate(-50%, -50%);
560560
gap: 16px;
561561
display: flex;
562562
flex-direction: column;
563+
z-index: 1000;
563564

564565
table {
565566
width: 100%;
@@ -700,20 +701,23 @@ dialog.help[open] {
700701
top: 0;
701702
left: 0;
702703
width: 100%;
703-
height: 100%;
704+
min-height: 100%;
704705
display: flex;
705706
align-items: center;
706707
justify-content: center;
707708
background: #ffffff;
708709
z-index: 1;
709710
pointer-events: none;
711+
overflow-y: auto;
710712
}
711713

712714
.welcome-content {
713715
text-align: center;
714716
max-width: 500px;
715-
padding: 40px;
717+
width: 100%;
718+
padding: 40px 20px;
716719
pointer-events: auto;
720+
box-sizing: border-box;
717721
}
718722

719723
.welcome-title {
@@ -743,3 +747,23 @@ dialog.help[open] {
743747
font-size: 16px;
744748
padding: 12px 24px;
745749
}
750+
751+
/* Responsive adjustments for mobile */
752+
@media (max-width: 640px) {
753+
.welcome-title {
754+
font-size: 36px;
755+
}
756+
757+
.welcome-content {
758+
padding: 20px 16px;
759+
}
760+
761+
.welcome-subtitle {
762+
font-size: 14px;
763+
}
764+
765+
.welcome-actions button {
766+
max-width: 100%;
767+
font-size: 14px;
768+
}
769+
}

0 commit comments

Comments
 (0)