Skip to content

Commit e316bbd

Browse files
Copilotmikebarkmin
andcommitted
Fix mobile viewport issues for welcome message and editor
- Changed welcome message to use height: 100% with top/right/bottom/left positioning instead of min-height - Added overflow-x: hidden to prevent horizontal scrolling - Added flex-shrink: 0 to welcome-content to prevent content compression - Changed mobile layout to align-items: flex-start with padding-top for better positioning - Reduced mobile title size from 36px to 32px for better fit - Added toolbar responsive styles - hide labels and reduce padding on mobile - Added toolbar-button responsive sizing for mobile - All content now properly fits within mobile viewports without being cut off Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
1 parent 37d5656 commit e316bbd

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

packages/learningmap/src/index.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,15 +700,18 @@ dialog.help[open] {
700700
position: absolute;
701701
top: 0;
702702
left: 0;
703+
right: 0;
704+
bottom: 0;
703705
width: 100%;
704-
min-height: 100%;
706+
height: 100%;
705707
display: flex;
706708
align-items: center;
707709
justify-content: center;
708710
background: #ffffff;
709711
z-index: 1;
710712
pointer-events: none;
711713
overflow-y: auto;
714+
overflow-x: hidden;
712715
}
713716

714717
.welcome-content {
@@ -718,6 +721,7 @@ dialog.help[open] {
718721
padding: 40px 20px;
719722
pointer-events: auto;
720723
box-sizing: border-box;
724+
flex-shrink: 0;
721725
}
722726

723727
.welcome-title {
@@ -750,8 +754,26 @@ dialog.help[open] {
750754

751755
/* Responsive adjustments for mobile */
752756
@media (max-width: 640px) {
757+
.editor-toolbar {
758+
padding: 8px 12px;
759+
}
760+
761+
.toolbar-button {
762+
padding: 6px 12px;
763+
font-size: 13px;
764+
}
765+
766+
.toolbar-label {
767+
display: none;
768+
}
769+
770+
.welcome-message {
771+
align-items: flex-start;
772+
padding-top: 20px;
773+
}
774+
753775
.welcome-title {
754-
font-size: 36px;
776+
font-size: 32px;
755777
}
756778

757779
.welcome-content {
@@ -760,10 +782,12 @@ dialog.help[open] {
760782

761783
.welcome-subtitle {
762784
font-size: 14px;
785+
margin: 0 0 24px 0;
763786
}
764787

765788
.welcome-actions button {
766789
max-width: 100%;
767790
font-size: 14px;
791+
padding: 10px 20px;
768792
}
769793
}

0 commit comments

Comments
 (0)