1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix preferences helm repos layout

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-06-15 11:39:42 +03:00
parent b78a7377f9
commit e201d3d6c1
3 changed files with 21 additions and 8 deletions

View File

@ -4,12 +4,22 @@
*/
.repos {
@apply mt-6 flex flex-col;
display: flex;
flex-direction: column;
margin-top: calc(var(--margin) * 2);
}
.repos .repo + .repo {
margin-top: calc(var(--margin) * 1.5);
}
.contents {
display: flex;
gap: var(--padding);
}
.repoName {
font-weight: 500;
margin-bottom: 8px;
}
.repoUrl {

View File

@ -40,14 +40,16 @@ const NonInjectedActiveHelmRepositories = observer(({ activeHelmRepositories, re
<RemovableItem
key={repository.name}
onRemove={() => removeRepository(repository)}
className="mt-3"
className={styles.repo}
data-testid={`remove-helm-repository-${repository.name}`}
>
<div data-testid={`helm-repository-${repository.name}`} className={styles.repoName}>
{repository.name}
</div>
<div>
<div data-testid={`helm-repository-${repository.name}`} className={styles.repoName}>
{repository.name}
</div>
<div className={styles.repoUrl}>{repository.url}</div>
<div className={styles.repoUrl}>{repository.url}</div>
</div>
</RemovableItem>
))}
</div>

View File

@ -1,7 +1,8 @@
.item {
--flex-gap: 1.2rem;
@apply rounded-md px-7 py-5 shadow-sm;
background: var(--inputControlBackground);
min-height: 65px;
border-radius: 3px;
padding: calc(var(--padding) * 1.5);
}