ui: fix gitlab importer view

This commit is contained in:
Andras Bacsai 2022-09-28 09:56:27 +02:00
parent 96f2660b98
commit 9662bc29fb
3 changed files with 8 additions and 5 deletions

View File

@ -152,8 +152,8 @@
</div> </div>
{:else} {:else}
<form on:submit|preventDefault={handleSubmit} class="px-10"> <form on:submit|preventDefault={handleSubmit} class="px-10">
<div class="flex lg:flex-row flex-col lg:space-y-0 space-y-2 space-x-0 lg:space-x-2 items-center"> <div class="flex lg:flex-row flex-col lg:space-y-0 space-y-2 space-x-0 lg:space-x-2 items-center lg:justify-center">
<div class="custom-select-wrapper w-1/2"><label for="repository" class="pb-1">Repository</label> <div class="custom-select-wrapper"><label for="repository" class="pb-1">Repository</label>
<Select <Select
placeholder={loading.repositories placeholder={loading.repositories
? $t('application.configuration.loading_repositories') ? $t('application.configuration.loading_repositories')
@ -168,7 +168,7 @@
/> />
</div> </div>
<input class="hidden" bind:value={selected.projectId} name="projectId" /> <input class="hidden" bind:value={selected.projectId} name="projectId" />
<div class="custom-select-wrapper w-1/2"><label for="repository" class="pb-1">Branch</label> <div class="custom-select-wrapper"><label for="repository" class="pb-1">Branch</label>
<Select <Select
placeholder={loading.branches placeholder={loading.branches
? $t('application.configuration.loading_branches') ? $t('application.configuration.loading_branches')

View File

@ -328,8 +328,9 @@
</script> </script>
<form on:submit={handleSubmit}> <form on:submit={handleSubmit}>
<div class="flex flex-col space-y-2 px-4 xl:flex-row xl:space-y-0 xl:space-x-2 "> <div class="flex lg:flex-row flex-col lg:space-y-0 space-y-2 space-x-0 lg:space-x-2 items-center lg:justify-center">
<div class="custom-select-wrapper"> <div class="custom-select-wrapper">
<label for="groups" class="pb-1">Groups</label>
<Select <Select
placeholder={loading.base placeholder={loading.base
? $t('application.configuration.loading_groups') ? $t('application.configuration.loading_groups')
@ -355,6 +356,7 @@
/> />
</div> </div>
<div class="custom-select-wrapper"> <div class="custom-select-wrapper">
<label for="projects" class="pb-1">Projects</label>
<Select <Select
placeholder={loading.projects placeholder={loading.projects
? $t('application.configuration.loading_projects') ? $t('application.configuration.loading_projects')
@ -380,6 +382,7 @@
/> />
</div> </div>
<div class="custom-select-wrapper"> <div class="custom-select-wrapper">
<label for="branches" class="pb-1">Branches</label>
<Select <Select
placeholder={loading.branches placeholder={loading.branches
? $t('application.configuration.loading_branches') ? $t('application.configuration.loading_branches')

View File

@ -43,7 +43,7 @@ #svelte .custom-select-wrapper .selectContainer input {
} }
#svelte .custom-select-wrapper .selectContainer { #svelte .custom-select-wrapper .selectContainer {
@apply h-12 w-96 rounded bg-coolgray-200 p-2 px-0 text-xs tracking-tight outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 md:text-sm w-full ; @apply h-12 w-96 rounded bg-coolgray-200 p-2 px-0 text-xs tracking-tight outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 md:text-sm ;
} }
#svelte .listContainer { #svelte .listContainer {