Skip to content

An open-source, self-hosted system for apps built with web technologies.

save

zohayrslilehc10019c2014b
diff --git a/source/client/view/appearance/appearance.css b/source/client/view/appearance/appearance.css
index 3407721..235bdaa 100644
--- a/source/client/view/appearance/appearance.css
+++ b/source/client/view/appearance/appearance.css
@@ -37,8 +37,6 @@
--shadow-window-content: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
- --shadow-snap-preview: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
-
}
[data-start-menu-scroll] {
diff --git a/source/client/view/structure/desktop/windows/snap-preview.tsx b/source/client/view/structure/desktop/windows/snap-preview.tsx
index 181fef5..e5f8e31 100644
--- a/source/client/view/structure/desktop/windows/snap-preview.tsx
+++ b/source/client/view/structure/desktop/windows/snap-preview.tsx
@@ -3,6 +3,7 @@ import gsap, { motionEase } from "../../../appearance/motion"
import { resolveWindowGeometry, resolveWindowValue, windowPaintInsets, type WindowSurfaceSize } from "../../../components/window-manager/window-geometry"
import { windowPaintInset } from "../geometry"
import { type Position, type Size } from "@phreshos/core"
+import { Surface } from "@phreshos/react-ui"
/** GSAP-owned preview of the placement currently offered by a drag. */
export default function SnapPreview({ shown, visible, bare, paintSurfaceSize, radius, reducedMotion, zIndex }: SnapPreviewProps) {
@@ -75,9 +76,10 @@ export default function SnapPreview({ shown, visible, bare, paintSurfaceSize, ra
zIndex
}}
>
- <div
+ <Surface
data-snap-preview-frame
- className={`absolute border border-white/50 bg-white/25 shadow-snap-preview ${bare ? "inset-0" : ""}`}
+ opacity="xsmall"
+ className={`absolute ${bare ? "inset-0" : ""}`}
style={bare ? undefined : { ...windowPaintInsets(shown.position, shown.size, paintSurfaceSize, windowPaintInset), borderRadius: radius }}
/>
</div>