Merge pull request #1784 from gitbutlerapp/virtual-branch-1

some css changes
This commit is contained in:
Pavel Laptev 2023-11-28 15:46:55 +01:00 committed by GitHub
commit 2515d7f8c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 24 deletions

View File

@ -86,7 +86,6 @@
<FileTree
node={filesToFileTree(branch.files)}
isRoot={true}
class="p-2"
branchId={branch.id}
{selectedOwnership}
{selectedFileId}

View File

@ -43,13 +43,15 @@
{file.justpath}
</div>
</div>
{#if isLocked}
<div class="locked">
<Icon name="locked" />
<div class="icons">
{#if isLocked}
<div class="locked">
<Icon name="locked-small" />
</div>
{/if}
<div class="status">
<FileStatusCircle status={computeFileStatus(file)} />
</div>
{/if}
<div class="status">
<FileStatusCircle status={computeFileStatus(file)} />
</div>
</div>
</div>
@ -58,7 +60,7 @@
.file-list-item {
display: flex;
align-items: center;
padding: var(--space-6) var(--space-8);
padding: var(--space-4) var(--space-8);
gap: var(--space-16);
border-radius: var(--radius-s);
max-width: 100%;
@ -69,6 +71,11 @@
background: var(--clr-theme-container-pale);
}
}
.icons {
display: flex;
align-items: center;
gap: var(--space-4);
}
.icon {
flex-shrink: 0;
}
@ -96,13 +103,6 @@
color: var(--clr-theme-scale-warn-60);
}
.selected {
background-color: var(--clr-theme-pop-element);
& .name {
color: var(--clr-theme-pop-on-element);
}
& .path {
color: var(--clr-theme-pop-on-element);
opacity: 0.4;
}
background-color: var(--clr-theme-scale-pop-80);
}
</style>

View File

@ -37,9 +37,9 @@
class="mr-1 inline"
/>
</div>
<div class="name flex-shrink">
<span class="name text-base-12">
{file.filename}
</div>
</span>
<div class="status">
<FileStatusCircle status={computeFileStatus(file)} />
</div>
@ -73,9 +73,6 @@
opacity: 0.3;
}
.selected {
background-color: var(--clr-theme-pop-element);
& .name {
color: var(--clr-theme-pop-on-element);
}
background-color: var(--clr-theme-scale-pop-80);
}
</style>

View File

@ -14,9 +14,9 @@
<Icon name="chevron-right-small" />
{/if}
<IconFolder class="h-4 w-4 scale-75 text-blue-400" />
<div class="name">
<span class="name text-base-12">
{node.name}
</div>
</span>
<!-- {#if withCheckboxes}
<Checkbox checked={isChecked} indeterminate={isIndeterminate} on:change={onCheckboxChange} />
{/if} -->