Skip to content

Commit a507d1a

Browse files
committed
fix(frontend:files): align copy/move location icons
1 parent 612eae4 commit a507d1a

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

frontend/src/app/applications/files/components/sidebar/files-tree.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div #copyMovePanel class="bg-white p-2 fs-sm">
1616
<div class="d-flex">
1717
<div class="d-flex flex-column align-items-center me-2 text-muted">
18-
<span class="border rounded-circle d-flex align-items-center justify-content-center p-2 lh-1">
18+
<span class="copy-move-location-icon border rounded-circle d-flex align-items-center justify-content-center lh-1">
1919
<fa-icon
2020
[icon]="files.length === 1 ? (files[0].isDir ? icons.faFolder : icons.faFile) : files.length > 1 ? icons.faObjectGroup : icons.faQuestion"
2121
[fixedWidth]="true">
@@ -24,7 +24,7 @@
2424
<span class="copy-move-connector border-start flex-grow-1"></span>
2525
</div>
2626
<div class="flex-grow-1 overflow-hidden pb-2">
27-
<div class="text-muted mb-1">
27+
<div class="copy-move-location-label text-muted mb-1">
2828
<span l10nTranslate>Source</span>
2929
@if (files.length === 1) {
3030
<span class="mx-1 lh-1 text-muted"></span>
@@ -68,12 +68,12 @@
6868

6969
<div class="d-flex">
7070
<div class="d-flex flex-column align-items-center me-2 text-muted">
71-
<span class="border rounded-circle d-flex align-items-center justify-content-center p-2 lh-1">
71+
<span class="copy-move-location-icon border rounded-circle d-flex align-items-center justify-content-center lh-1">
7272
<fa-icon [icon]="destination?.icon || icons.faQuestion" [fixedWidth]="true"></fa-icon>
7373
</span>
7474
</div>
7575
<div class="flex-grow-1 overflow-hidden">
76-
<div class="text-muted mb-1 d-flex align-items-center overflow-hidden">
76+
<div class="copy-move-location-label text-muted mb-1 overflow-hidden">
7777
<span class="flex-shrink-0" l10nTranslate>Destination</span>
7878
@if (selection && dstAllowed && destination?.relativePath) {
7979
<span class="mx-1 lh-1 text-muted"></span>

frontend/src/styles/components/_tree.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ $tree-root-shares-icon: 'M384 192c53 0 96-43 96-96s-43-96-96-96-96 43-96 96c0 5.
5757
width: 24px;
5858
}
5959

60+
.copy-move-location-icon {
61+
flex: 0 0 1.5rem;
62+
width: 1.5rem;
63+
height: 1.5rem;
64+
65+
fa-icon {
66+
font-size: 0.875em;
67+
}
68+
}
69+
70+
.copy-move-location-label {
71+
display: flex;
72+
align-items: center;
73+
min-height: 1.5rem;
74+
}
75+
6076
.angular-tree-component {
6177
display: grid !important;
6278
white-space: nowrap;

0 commit comments

Comments
 (0)