Skip to content

Commit 1f63551

Browse files
committed
refactor: Improve mobile UI, dependency management, and docs
- Update README.md and CONTRIBUTE.md with correct file paths - Replace CDN links with npm dependencies for KaTeX and Plausible - Set Schrödinger equation as default - Refactor mobile layout: - Add mobile header with toggle buttons - Convert sidebar and editor to full-screen overlays - Optimize equation display spacing (dynamic margin based on size) - Improve responsiveness for small screens
1 parent e768dba commit 1f63551

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/components/CentralPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ h1 {
116116
font-family: var(--font-ui);
117117
font-size: 1rem;
118118
color: var(--text-secondary);
119-
margin-bottom: 2.5rem;
119+
margin-bottom: 1.5rem;
120120
text-align: center;
121121
opacity: 0.8;
122122
}
@@ -128,7 +128,7 @@ h1 {
128128
129129
.subtitle {
130130
font-size: 0.875rem;
131-
margin-bottom: 1.5rem;
131+
margin-bottom: 1rem;
132132
}
133133
}
134134
</style>

src/components/equation/EquationDisplay.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ onUnmounted(() => resizeObserver?.disconnect());
174174

175175
<style scoped>
176176
#equation-container {
177-
padding: 3rem 2rem;
178-
margin-bottom: 2.5rem;
177+
padding: 0.25rem 1rem;
178+
min-height: 150px; /* Ensure smaller formulas have some breathing room */
179+
margin-bottom: 1.5rem;
179180
display: flex;
180181
justify-content: center;
181182
align-items: center;
@@ -184,6 +185,10 @@ onUnmounted(() => resizeObserver?.disconnect());
184185
background: var(--bg-primary);
185186
}
186187
188+
#equation-container :deep(.katex-display) {
189+
margin: 0;
190+
}
191+
187192
.selection-overlay {
188193
position: absolute;
189194
top: 0;
@@ -219,7 +224,7 @@ onUnmounted(() => resizeObserver?.disconnect());
219224
220225
@media (max-width: 768px) {
221226
#equation-container {
222-
padding: 1.5rem 1rem;
227+
padding: 0.5rem 1rem;
223228
overflow-x: auto;
224229
justify-content: flex-start;
225230
/* Ensure container can scroll */

0 commit comments

Comments
 (0)