Remove apply scene name button and update input behavior
This commit is contained in:
@@ -1078,6 +1078,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
type="text"
|
type="text"
|
||||||
value={sceneNameDraft}
|
value={sceneNameDraft}
|
||||||
onChange={(event) => setSceneNameDraft(event.currentTarget.value)}
|
onChange={(event) => setSceneNameDraft(event.currentTarget.value)}
|
||||||
|
onBlur={applySceneName}
|
||||||
onKeyDown={(event) => {
|
onKeyDown={(event) => {
|
||||||
if (event.key === "Enter") {
|
if (event.key === "Enter") {
|
||||||
applySceneName();
|
applySceneName();
|
||||||
@@ -1086,12 +1087,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div className="inline-actions">
|
|
||||||
<button className="toolbar__button toolbar__button--accent" type="button" onClick={applySceneName}>
|
|
||||||
Apply Scene Name Command
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="form-section">
|
<div className="form-section">
|
||||||
<div className="label">Save / Load</div>
|
<div className="label">Save / Load</div>
|
||||||
<div className="inline-actions">
|
<div className="inline-actions">
|
||||||
@@ -1112,11 +1107,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
{persistenceMessage}
|
{persistenceMessage}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul className="placeholder-list">
|
|
||||||
<li>Local Draft is the browser persistence path for this slice and auto-loads on refresh when available.</li>
|
|
||||||
<li>JSON import replaces the current document only after migration and validation succeed.</li>
|
|
||||||
</ul>
|
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<Panel title="Status">
|
<Panel title="Status">
|
||||||
|
|||||||
Reference in New Issue
Block a user