diff --git a/js/textbox/shared/Textbox.svelte b/js/textbox/shared/Textbox.svelte index 7dbc07a6dfa4..35175bebd69b 100644 --- a/js/textbox/shared/Textbox.svelte +++ b/js/textbox/shared/Textbox.svelte @@ -198,102 +198,135 @@ - {label} - - - - {#if lines === 1 && max_lines === 1} - - {:else} - - {/if} - - {#if submit_btn} - - {#if submit_btn === true} - - {:else} - {submit_btn} - {/if} - - {/if} - - {#if stop_btn} - - {#if stop_btn === true} - - {:else} - {stop_btn} - {/if} - - {/if} - - - {#if show_copy_button} - {#if copied} - - - - {:else} - - - - {/if} - {/if} - + {label} + + + + {#if lines === 1 && max_lines === 1} + {#if type === "text"} + + {:else if type === "password"} + + {:else if type === "email"} + + {/if} + + {/if} + {#if submit_btn} + + {#if submit_btn === true} + + {:else} + {submit_btn} + {/if} + + {/if} + {#if stop_btn} + + {#if stop_btn === true} + + {:else} + {stop_btn} + {/if} + + {/if} + + + {#if show_copy_button} + {#if copied} + + + + {:else} + + + + {/if} + {/if} +