fix: more gaps in M3

This commit is contained in:
2026-04-09 07:48:43 +02:00
parent 9867bf9c65
commit c6d26957dc
15 changed files with 1403 additions and 202 deletions

View File

@@ -178,12 +178,18 @@ pub fn view<'a>(
|k| Message::ScriptEditor(ScriptEditorMsg::KindChanged(k)),
);
// Entrypoint: show discovered functions as a select or text input
let entrypoint_input = inputs::labeled_input(
let mut entrypoint_options = state.discovered_entrypoints.clone();
if !entrypoint_options.iter().any(|entrypoint| entrypoint == &state.entrypoint) {
entrypoint_options.push(state.entrypoint.clone());
}
let selected_entrypoint = entrypoint_options
.iter()
.find(|entrypoint| *entrypoint == &state.entrypoint);
let entrypoint_input = inputs::labeled_select(
&t(locale, "editor.entrypoint"),
"render",
&state.entrypoint,
|s| Message::ScriptEditor(ScriptEditorMsg::EntrypointChanged(s)),
&entrypoint_options,
selected_entrypoint,
|entrypoint| Message::ScriptEditor(ScriptEditorMsg::EntrypointChanged(entrypoint)),
);
let enabled_check = inputs::labeled_checkbox(