Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

chore(frontend:files): harmonize component title, buttons, and spacing

johavenf12dc6347102
diff --git a/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html b/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html
index 502892c8..52390d7f 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html
@@ -1,12 +1,12 @@
-<div class="sidebar-component-title">
+<div class="sidebar-component-title justify-content-between">
<fa-icon class="cursor-pointer"
[icon]="icons.faQuestion"
[tooltip]="'Actions will be performed in the current folder' | translate:locale.language"
container="body"
placement="left">
</fa-icon>
- <span l10nTranslate>Clipboard</span>
- <button (click)="clearAll()" class="btn btn-default">
+ <div l10nTranslate>Clipboard</div>
+ <button (click)="clearAll()" class="btn btn-sm btn-default">
<fa-icon [icon]="icons.faTrashCan"></fa-icon>
</button>
</div>
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html b/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html
index e078bf56..6112a2d1 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html
@@ -1,5 +1,5 @@
<div class="sidebar-component-title justify-content-between">
- <div style="width: 35px"></div>
+ <div style="width: 25px"></div>
<div>
@switch (nbActiveTasks) {
@case (0) {
@@ -17,7 +17,7 @@
}
</div>
@if (nbTotalTasks) {
- <button (click)="removeTasks()" class="btn btn-default">
+ <button (click)="removeTasks()" class="btn btn-sm btn-default">
<fa-icon [icon]="icons.faTrashAlt"></fa-icon>
</button>
} @else {
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tree.component.html b/frontend/src/app/applications/files/components/sidebar/files-tree.component.html
index 2a532951..97d16a9f 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tree.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-tree.component.html
@@ -1,13 +1,16 @@
@if (sideBarHeader) {
- <div class="sidebar-component-title">
- <button (click)="onRefresh()" class="btn btn-default">
+ <div class="sidebar-component-title justify-content-between">
+ <div style="width: 25px"></div>
+ <div>
+ @if (errorMsg) {
+ <span class="text-danger fs-sm p-1" l10nTranslate>{{ errorMsg }}</span>
+ } @else {
+ <span l10nTranslate>Navigation Tree</span>
+ }
+ </div>
+ <button (click)="onRefresh()" class="btn btn-sm btn-default">
<fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>
</button>
- @if (errorMsg) {
- <span class="text-danger fs-sm p-1" l10nTranslate>{{ errorMsg }}</span>
- } @else {
- <span l10nTranslate>Navigation Tree</span>
- }
</div>
}
@if (copyMoveOn) {