Spaces:
Running
Running
fix: reduce welcome overlay text size and spacing to prevent cutoff
Browse files- Smaller title font (22px down from 28px)
- Smaller body text (14px) with tighter line height (1.4)
- Reduced padding (24px down from 32px) and margins
- Smaller icon (48px down from 64px)
- Add max-height 80vh and overflow-y auto for safety
- Better spacing prevents content from being cut off
- src/styles.css +9 -6
- src/welcomeOverlay.js +2 -2
src/styles.css
CHANGED
@@ -68,26 +68,29 @@
|
|
68 |
.welcome-modal {
|
69 |
background: white;
|
70 |
border-radius: 12px;
|
71 |
-
padding:
|
72 |
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
|
|
|
73 |
}
|
74 |
|
75 |
.welcome-title {
|
76 |
-
margin: 0 0
|
77 |
color: #1f2937;
|
78 |
-
font-size:
|
79 |
font-weight: 600;
|
80 |
}
|
81 |
|
82 |
.welcome-content {
|
83 |
text-align: left;
|
84 |
color: #4b5563;
|
85 |
-
line-height: 1.
|
86 |
-
margin-bottom:
|
|
|
87 |
}
|
88 |
|
89 |
.welcome-content p {
|
90 |
-
margin: 0 0
|
91 |
}
|
92 |
|
93 |
.welcome-overlay .typewriter-button {
|
|
|
68 |
.welcome-modal {
|
69 |
background: white;
|
70 |
border-radius: 12px;
|
71 |
+
padding: 24px;
|
72 |
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
73 |
+
max-height: 80vh;
|
74 |
+
overflow-y: auto;
|
75 |
}
|
76 |
|
77 |
.welcome-title {
|
78 |
+
margin: 0 0 16px 0;
|
79 |
color: #1f2937;
|
80 |
+
font-size: 22px;
|
81 |
font-weight: 600;
|
82 |
}
|
83 |
|
84 |
.welcome-content {
|
85 |
text-align: left;
|
86 |
color: #4b5563;
|
87 |
+
line-height: 1.4;
|
88 |
+
margin-bottom: 20px;
|
89 |
+
font-size: 14px;
|
90 |
}
|
91 |
|
92 |
.welcome-content p {
|
93 |
+
margin: 0 0 12px 0;
|
94 |
}
|
95 |
|
96 |
.welcome-overlay .typewriter-button {
|
src/welcomeOverlay.js
CHANGED
@@ -34,10 +34,10 @@ class WelcomeOverlay {
|
|
34 |
`;
|
35 |
|
36 |
modal.innerHTML = `
|
37 |
-
<div style="display: flex; justify-content: center; margin-bottom:
|
38 |
<img src="https://raw.githubusercontent.com/zmuhls/cloze-reader/main/icon.png"
|
39 |
alt="Cloze Reader"
|
40 |
-
style="width:
|
41 |
</div>
|
42 |
<h1 class="welcome-title">
|
43 |
Cloze Reader
|
|
|
34 |
`;
|
35 |
|
36 |
modal.innerHTML = `
|
37 |
+
<div style="display: flex; justify-content: center; margin-bottom: 12px;">
|
38 |
<img src="https://raw.githubusercontent.com/zmuhls/cloze-reader/main/icon.png"
|
39 |
alt="Cloze Reader"
|
40 |
+
style="width: 48px; height: 48px; border-radius: 6px;">
|
41 |
</div>
|
42 |
<h1 class="welcome-title">
|
43 |
Cloze Reader
|