Skip to content

Commit

Permalink
fix bottom and width schema/output
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 19, 2023
1 parent 9a94919 commit 19fb07b
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,7 @@ exports[`replay/transform transform inputs open keyboard custom event 1`] = `
"nextId": null,
"node": {
"attributes": {
"style": "color: #35373e;background-color: #f3f4ef;width: 100vw;height: 150px;position: fixed;left: 0px;top: 0px;align-items: center;justify-content: center;display: flex;",
"style": "color: #35373e;background-color: #f3f4ef;width: 100vw;height: 150px;bottom: 0;position: fixed;align-items: center;justify-content: center;display: flex;",
},
"childNodes": [
{
Expand Down
15 changes: 9 additions & 6 deletions ee/frontend/mobile-replay/mobile.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ type wireframeBase = {
x?: number
y?: number
/*
* @description the width dimension of the element, the only accepted units is pixels. You can omit the unit. If not received it is not set
* @description the width dimension of the element, either '100vw' i.e. viewport width. Or a value in pixels. You can omit the unit when specifying pixels.
*/
width?: number
width: number | '100vw'
/*
* @description the height dimension of the element, the only accepted units is pixels. You can omit the unit. If not received it is not set
* @description the height dimension of the element, the only accepted units is pixels. You can omit the unit.
*/
height?: number
height: number
childWireframes?: wireframe[]
type: MobileNodeType
style?: MobileStyles
Expand Down Expand Up @@ -302,14 +302,17 @@ export type keyboardEvent = {
open: true
styles?: MobileStyles
/**
* @description x and y are the top left corner of the element, if they are present then the element is absolutely positioned, if they are not present this is equivalent to setting `bottom: 0`
* @description x and y are the top left corner of the element, if they are present then the element is absolutely positioned, if they are not present then the keyboard is at the bottom of the screen
*/
x?: number
y?: number
/*
* @description width and height are the dimensions of the element, the only accepted units is pixels. You can omit the unit. A keyboard always has height, and defaults to width of the viewport
* @description the height dimension of the keyboard, the only accepted units is pixels. You can omit the unit.
*/
height: number
/*
* @description the width dimension of the keyboard, the only accepted units is pixels. You can omit the unit. If not present defaults to width of the viewport
*/
width?: number
}
| { open: false }
Expand Down
Loading

0 comments on commit 19fb07b

Please sign in to comment.