This repository was archived by the owner on Feb 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add initial scale meta tag to scale viz on the entire viewport on mobile view * Tweak canvas controls on embed mode - RESET and Fit To View are now available in all embed modes - Zoom in and out buttons are only available if controls and zoom are both enabled - Hand tool (pan button) is only available if controls and pan are both enabled - Reset canvas button and Help button are no longer available in embed mode * adds changeset * update tests based on the new embed behavior
- Loading branch information
Showing
5 changed files
with
115 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'xstate-viz-app': minor | ||
--- | ||
|
||
Tweak controls options in embed mode | ||
|
||
- RESET and Fit To View are now available in all embed modes | ||
- Zoom in and out buttons are only available if controls and Zoom are both enabled | ||
- Hand tool (pan button) is only available if controls and pan are both enabled | ||
- Reset canvas button and Help button are no longer available in embed mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ export const AppHead = ({ importElk = true, ...props }: AppHeadProps) => { | |
return ( | ||
<Head> | ||
<link rel="apple-touch-icon" href="/viz/[email protected]" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/viz/favicon.png" /> | ||
<title>{props.title}</title> | ||
<meta name="description" content={props.description} /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters