Skip to content

Commit 46ee1df

Browse files
committed
fix(ui): resolve layout and theme issues in profile editor
- Fix overflow issues in main layout by removing pb-12 and adding min-h-0 - Fix code editor theme switching by adding key prop to force re-render - Fix localhost disclaimer positioning by removing fixed positioning and redundant padding - Simplify analytics page layout structure and adjust spacing
1 parent 8c9d669 commit 46ee1df

File tree

4 files changed

+210
-211
lines changed

4 files changed

+210
-211
lines changed

ui/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Layout() {
5050
<ThemeToggle />
5151
</div>
5252
</header>
53-
<div className="flex-1 overflow-auto pb-12">
53+
<div className="flex-1 overflow-auto min-h-0">
5454
<Suspense fallback={<PageLoader />}>
5555
<Outlet />
5656
</Suspense>

ui/src/components/code-editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export function CodeEditor({
126126
value={value}
127127
onValueChange={readonly ? () => {} : onChange}
128128
highlight={highlightCode}
129+
key={isDark ? 'dark' : 'light'}
129130
padding={12}
130131
disabled={readonly}
131132
onFocus={() => setIsFocused(true)}

ui/src/components/localhost-disclaimer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function LocalhostDisclaimer() {
77
if (dismissed) return null;
88

99
return (
10-
<div className="fixed bottom-0 left-0 right-0 bg-yellow-50 dark:bg-yellow-900/20 border-t border-yellow-200 dark:border-yellow-800 px-4 py-2 z-50 md:pl-[var(--sidebar-width)] transition-[padding] duration-200">
10+
<div className="w-full bg-yellow-50 dark:bg-yellow-900/20 border-t border-yellow-200 dark:border-yellow-800 px-4 py-2 transition-colors duration-200">
1111
<div className="flex items-center justify-center gap-4">
1212
<div className="flex items-center gap-2 text-sm text-yellow-800 dark:text-yellow-200">
1313
<Shield className="w-4 h-4 flex-shrink-0" />

0 commit comments

Comments
 (0)