Fix ModelSelect styles in frontend settings

This commit is contained in:
Andrew Kingston 2020-10-13 08:26:13 +01:00
parent 42f4bcc339
commit 5af85541ec
1 changed files with 19 additions and 6 deletions

View File

@ -5,9 +5,22 @@
export let value export let value
</script> </script>
<Select thin secondary wide on:change {value}> <div>
<option value="" /> <Select thin secondary wide on:change {value}>
<option value="">Choose a table</option>
{#each $backendUiStore.models as model} {#each $backendUiStore.models as model}
<option value={model._id}>{model.name}</option> <option value={model._id}>{model.name}</option>
{/each} {/each}
</Select> </Select>
</div>
<style>
div {
flex: 1 1 auto;
display: flex;
flex-direction: row;
}
div :global(> *) {
flex: 1 1 auto;
}
</style>