Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ui): appearance on mobile (#3005)

Fake-Usera3e4aea5987d
diff --git a/js/app/packages/app/component/settings/Appearance.tsx b/js/app/packages/app/component/settings/Appearance.tsx
index 2f3d9086f7..e26c2687ae 100644
--- a/js/app/packages/app/component/settings/Appearance.tsx
+++ b/js/app/packages/app/component/settings/Appearance.tsx
@@ -3,7 +3,9 @@ import { ThemeEditorBasic } from '@theme/components/ThemeEditorBasic';
import ThemeTools from '@theme/components/ThemeTools';
import ThemeList from '@theme/components/ThemeList';
+import { isMobile } from '@core/mobile/isMobile';
import { Panel } from '@ui';
+import { cn } from '@ui/utils/classname';
export function Appearance() {
return (
@@ -27,9 +29,11 @@ export function Appearance() {
<Panel depth={2}>
<ThemeList />
</Panel>
- <Panel depth={2}>
- <ThemeEditorAdvanced />
- </Panel>
+ <div class={cn('contents', isMobile() && 'hidden')}>
+ <Panel depth={2}>
+ <ThemeEditorAdvanced />
+ </Panel>
+ </div>
</div>
</div>
);
diff --git a/js/app/packages/theme/components/ThemeEditorBasic.tsx b/js/app/packages/theme/components/ThemeEditorBasic.tsx
index d9a40097f7..e3cc55c00b 100644
--- a/js/app/packages/theme/components/ThemeEditorBasic.tsx
+++ b/js/app/packages/theme/components/ThemeEditorBasic.tsx
@@ -1,6 +1,7 @@
import { batch, createEffect, createSignal, onCleanup, onMount } from 'solid-js';
import { setThemeDepth, themeDepth } from '../signals/themeSignals';
import { themeReactive } from '../signals/themeReactive';
+import { isMobile } from '@core/mobile/isMobile';
function setLightness(lightness: number) {
batch(() => {
@@ -334,13 +335,13 @@ export function ThemeEditorBasic(){
<div
onPointerDown={handleCanvasPointerDown}
ref={canvasContainerRef}
- style="
- border: 1px solid var(--b4);
- border-radius: 6px;
- position: relative;
- height: 250px;
- width: 100%;
- "
+ style={{
+ 'height': isMobile() ? '140px' : '250px',
+ 'border': '1px solid var(--b4)',
+ 'border-radius': '6px',
+ 'position': 'relative',
+ 'width': '100%',
+ }}
>
<canvas
style="