FrederickSundeep commited on
Commit
aa558b2
·
1 Parent(s): a40e46f

commit initial 09-12-2025 43

Browse files
Files changed (1) hide show
  1. src/App.css +34 -31
src/App.css CHANGED
@@ -45,17 +45,14 @@ html, body, #root {
45
  Menubar
46
  ============================ */
47
 
 
48
  .ide-menubar {
49
- height: 32px;
50
- display: flex;
51
  align-items: center;
52
- justify-content: space-between;
53
- padding: 0 10px;
54
- background: #252526;
55
- color: #eee;
56
- font-size: 13px;
57
- border-bottom: 1px solid #444;
58
- flex: 0 0 auto;
59
  }
60
 
61
  .ide-menubar-left,
@@ -63,38 +60,44 @@ html, body, #root {
63
  display: flex;
64
  align-items: center;
65
  gap: 8px;
 
66
  }
67
 
68
- .ide-logo {
69
- font-weight: 600;
70
- margin-right: 12px;
71
- }
72
-
73
  .ide-menubar button {
74
- margin-right: 4px;
75
- background: transparent;
76
- border: none;
77
- color: inherit;
78
- cursor: pointer;
79
- padding: 2px 6px;
80
- border-radius: 3px;
81
  font-size: 13px;
 
 
82
  }
83
 
84
- .ide-menubar button:hover {
85
- background: rgba(255, 255, 255, 0.08);
 
 
 
 
 
 
 
 
 
 
 
86
  }
87
 
88
- /* ============================
89
- Body Layout
90
- ============================ */
 
 
 
 
91
 
 
92
  .ide-body {
93
- flex: 1;
94
- display: flex;
95
- overflow: hidden; /* prevent children from creating page overflow */
96
- min-height: 0; /* allow children to shrink (important for flex) */
97
- max-width: 100%;
98
  }
99
 
100
  /* ============================
 
45
  Menubar
46
  ============================ */
47
 
48
+ /* allow left/right groups to wrap when space is tight */
49
  .ide-menubar {
50
+ height: auto; /* allow multiple rows when wrapped */
51
+ min-height: 32px;
52
  align-items: center;
53
+ padding: 6px 8px;
54
+ gap: 8px;
55
+ flex-wrap: wrap; /* allow wrapping */
 
 
 
 
56
  }
57
 
58
  .ide-menubar-left,
 
60
  display: flex;
61
  align-items: center;
62
  gap: 8px;
63
+ flex-wrap: wrap; /* buttons wrap to new line if needed */
64
  }
65
 
66
+ /* make buttons flexible so they can shrink on narrow screens */
 
 
 
 
67
  .ide-menubar button {
68
+ padding: 4px 8px;
 
 
 
 
 
 
69
  font-size: 13px;
70
+ white-space: nowrap;
71
+ flex-shrink: 0; /* prevent squishing text; use wrap instead */
72
  }
73
 
74
+ /* smaller padding on mobile so more fit on one line */
75
+ @media (max-width: 640px) {
76
+ .ide-menubar {
77
+ padding: 6px 6px;
78
+ }
79
+ .ide-menubar button {
80
+ padding: 4px 6px;
81
+ font-size: 12px;
82
+ }
83
+ .ide-logo {
84
+ font-size: 13px;
85
+ margin-right: 8px;
86
+ }
87
  }
88
 
89
+ /* ensure menubar doesn't cause horizontal page overflow */
90
+ .ide-menubar,
91
+ .ide-menubar-left,
92
+ .ide-menubar-right {
93
+ max-width: 100%;
94
+ box-sizing: border-box;
95
+ }
96
 
97
+ /* if the menubar wraps, make sure body content doesn't get pushed off-screen */
98
  .ide-body {
99
+ flex: 1 1 auto;
100
+ min-height: 0;
 
 
 
101
  }
102
 
103
  /* ============================