@swiftbrowser/web 0.26.3 → 0.26.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/deviceFrame.ts +2 -2
- package/src/layout/engine.ts +663 -188
- package/src/layoutDom.ts +40 -2
- package/src/protocol.ts +12 -0
- package/src/renderer.ts +13 -2
- package/src/styles.css +490 -150
- package/src/symbols.ts +3 -0
package/package.json
CHANGED
package/src/deviceFrame.ts
CHANGED
|
@@ -34,14 +34,14 @@ export const DEVICE_FRAMES: readonly { id: DeviceFrame; label: string }[] = [
|
|
|
34
34
|
/**
|
|
35
35
|
* The safe area each device gives the app: an iPhone 15 Pro's status bar and
|
|
36
36
|
* home indicator, an iPad's (24 and 20 points, as iPadOS draws them in
|
|
37
|
-
* landscape), a Mac window's
|
|
37
|
+
* landscape), a Mac window's 32-point title bar (macOS 26's compact one) (its traffic lights drawn
|
|
38
38
|
* by the page over the app, as the iPhone's status bar is), and none
|
|
39
39
|
* without a device.
|
|
40
40
|
*/
|
|
41
41
|
export const FRAME_SAFE_AREAS: Readonly<Record<DeviceFrame, EdgeInsets>> = {
|
|
42
42
|
iphone: { top: 59, leading: 0, bottom: 34, trailing: 0 },
|
|
43
43
|
ipad: { top: 24, leading: 0, bottom: 20, trailing: 0 },
|
|
44
|
-
mac: { top:
|
|
44
|
+
mac: { top: 32, leading: 0, bottom: 0, trailing: 0 },
|
|
45
45
|
none: { top: 0, leading: 0, bottom: 0, trailing: 0 },
|
|
46
46
|
};
|
|
47
47
|
|