Spaces:
Runtime error
Runtime error
Thomas G. Lopes commited on
Commit ·
11e0dcc
1
Parent(s): 4e7f4fc
change prompt labeling
Browse filesFiles changed (2)
24 unmodified lines252627282829303139 unmodified lines717273747475767724 unmodified lines });
async function saveProject() { session.saveProject((await prompt("Project name")) || "Project #" + ($session.projects.length + 1)); session.saveProject((await prompt("Set project name")) || "Project #" + ($session.projects.length + 1)); }</script>
39 unmodified lines class="grid place-items-center rounded-md p-1 text-xs hover:bg-gray-300 dark:hover:bg-gray-600" on:click={async e => { e.stopPropagation(); session.updateProject(id, { name: (await prompt("Project name", name)) || name }); session.updateProject(id, { name: (await prompt("Edit project name", name)) || name }); }} > <IconEdit />51 unmodified lines525354555556575859608 unmodified lines6970717072737451 unmodified lines use:clickOutside={resolvePrompt} > <div class="flex items-center justify-between rounded-t border-b p-4 md:px-5 md:py-4 dark:border-gray-800"> <h3 class="flex items-center gap-2.5 text-lg font-semibold text-gray-900 dark:text-white">Prompt</h3> <h3 class="flex items-center gap-2.5 text-lg font-semibold text-gray-900 dark:text-white"> {current.label ?? "Prompt"} </h3> <button type="button" class="ms-auto inline-flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"8 unmodified lines <!-- Modal body --> <div class="p-4 md:p-5"> <label class="flex flex-col gap-2 font-medium text-gray-900 dark:text-white"> <p>{current.label}</p> <!-- This is fine in dialogs --> <!-- svelte-ignore a11y-autofocus --> <inputsrc/lib/components/InferencePlayground/InferencePlaygroundProjectSelect.svelte+2-2
src/lib/components/Prompts.svelte+3-2