diff --git a/.changeset/plenty-poets-nail.md b/.changeset/plenty-poets-nail.md new file mode 100644 index 00000000..f6fcdacc --- /dev/null +++ b/.changeset/plenty-poets-nail.md @@ -0,0 +1,8 @@ +--- +'playroom': patch +--- + +Move Title setting from Settings Panel to Frame Panel to group current playroom settings together and improve discoverability. + +Now, all settings that affect the current playroom tab live in the Frame Panel. +Settings affecting all playroom tabs live in the Settings Panel. diff --git a/src/Playroom/FramesPanel/FramesPanel.css.ts b/src/Playroom/FramesPanel/FramesPanel.css.ts index 56381632..babbd4f8 100644 --- a/src/Playroom/FramesPanel/FramesPanel.css.ts +++ b/src/Playroom/FramesPanel/FramesPanel.css.ts @@ -144,3 +144,22 @@ globalStyle(`${checkbox}:checked ~ ${fakeCheckbox} > svg `, { transform: 'none', transition: vars.transition.fast, }); + +export const textField = style([ + sprinkles({ + font: 'large', + width: 'full', + paddingX: 'large', + boxSizing: 'border-box', + borderRadius: 'medium', + }), + { + color: colorPaletteVars.foreground.neutral, + height: vars.touchableSize, + background: colorPaletteVars.background.surface, + '::placeholder': { + color: colorPaletteVars.foreground.neutralSoft, + }, + border: `1px solid ${colorPaletteVars.border.standard}`, + }, +]); diff --git a/src/Playroom/FramesPanel/FramesPanel.tsx b/src/Playroom/FramesPanel/FramesPanel.tsx index f0fdd385..9c1319e3 100644 --- a/src/Playroom/FramesPanel/FramesPanel.tsx +++ b/src/Playroom/FramesPanel/FramesPanel.tsx @@ -7,6 +7,21 @@ import { Stack } from '../Stack/Stack'; import { Text } from '../Text/Text'; import * as styles from './FramesPanel.css'; +import { Helmet } from 'react-helmet'; + +const getTitle = (title: string | undefined) => { + if (title) { + return `${title} | Playroom`; + } + + const configTitle = window?.__playroomConfig__.title; + + if (configTitle) { + return `${configTitle} | Playroom`; + } + + return 'Playroom'; +}; interface FramesPanelProps { availableWidths: number[]; @@ -77,7 +92,7 @@ function FrameOption