mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-18 00:46:25 +00:00
Cute visual indicator
This commit is contained in:
@@ -83,7 +83,10 @@
|
|||||||
<label class="form-check-label" for="{{typeName}}{{object.id}}"></label>
|
<label class="form-check-label" for="{{typeName}}{{object.id}}"></label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td scope="row" class="depth-{{depth}}">
|
<td scope="row" class="name-cell" style="--depth: {{depth}}">
|
||||||
|
@if (depth > 0) {
|
||||||
|
<div class="indicator"></div>
|
||||||
|
}
|
||||||
<button class="btn btn-link ms-0 ps-0 text-start" (click)="userCanEdit(object) ? openEditDialog(object) : null; $event.stopPropagation()">{{ object.name }}</button>
|
<button class="btn btn-link ms-0 ps-0 text-start" (click)="userCanEdit(object) ? openEditDialog(object) : null; $event.stopPropagation()">{{ object.name }}</button>
|
||||||
</td>
|
</td>
|
||||||
<td scope="row" class="d-none d-sm-table-cell">{{ getMatching(object) }}</td>
|
<td scope="row" class="d-none d-sm-table-cell">{{ getMatching(object) }}</td>
|
||||||
|
@@ -11,26 +11,16 @@ tbody tr:last-child td {
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.depth-0 {
|
td.name-cell {
|
||||||
padding-left: 0;
|
padding-left: calc(calc(var(--depth) - 1) * 1.1rem);
|
||||||
}
|
|
||||||
|
|
||||||
.depth-1 {
|
.indicator {
|
||||||
padding-left: 20px;
|
display: inline-block;
|
||||||
}
|
width: .8rem;
|
||||||
|
height: .8rem;
|
||||||
.depth-2 {
|
border-left: 1px solid var(--bs-secondary);
|
||||||
padding-left: 40px;
|
border-bottom: 1px solid var(--bs-secondary);
|
||||||
}
|
margin-right: .25rem;
|
||||||
|
margin-left: .5rem;
|
||||||
.depth-3 {
|
}
|
||||||
padding-left: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.depth-4 {
|
|
||||||
padding-left: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.depth-5 {
|
|
||||||
padding-left: 100px;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user