An open-source, self-hosted system for apps built with web technologies.
Remove Window padding workaround for Surface borders
zohayrslileh0249680a4607
diff --git a/scripts/contracts/panel.tsx b/scripts/contracts/panel.tsxindex 8ab5dd9..6870286 100644--- a/scripts/contracts/panel.tsx+++ b/scripts/contracts/panel.tsx@@ -27,6 +27,8 @@ const window = markup(<Window icon="/icon.svg" title="Window"><iframe title="Conpanel(window)assert.match(window, /data-window-container/)assert.match(window, /<iframe title="Content"/)+assert.doesNotMatch(window, /class="p-px"/)+assert.match(window, /data-surface-border=""[^>]*z-index:1/)const bare = markup(<Window bare icon="/icon.svg" title="Bare"><iframe title="Content" /></Window>)assert.doesNotMatch(bare, /data-surface-material/)diff --git a/source/client/view/structure/desktop/windows/window.tsx b/source/client/view/structure/desktop/windows/window.tsxindex aa78f49..bf78283 100644--- a/source/client/view/structure/desktop/windows/window.tsx+++ b/source/client/view/structure/desktop/windows/window.tsx@@ -716,7 +716,6 @@ export default function ({ title, icon, children, onClose, onClosed, onMinimize,ref={surfaceElement}style={paintedInsets}className="absolute"- contentProps={{ className: "p-px" }}header={<WindowHeadertitle={title}