Skip to content

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

chore(frontend:files): align file summary with sidebar theme

johaven2f2a5afbac9e
diff --git a/frontend/src/app/applications/files/components/utils/files-summary.component.ts b/frontend/src/app/applications/files/components/utils/files-summary.component.ts
index b1be46a6..6801f623 100644
--- a/frontend/src/app/applications/files/components/utils/files-summary.component.ts
+++ b/frontend/src/app/applications/files/components/utils/files-summary.component.ts
@@ -22,18 +22,18 @@ interface FilesSummarySize {
template: `
@let fileStats = stats();
@let sizeSummary = totalSize | async;
- <div class="app-small-card rounded d-flex justify-content-center align-items-center text-nowrap fs-sm py-2">
+ <div class="app-small-card files-summary-card border rounded d-flex justify-content-center align-items-center text-nowrap fs-sm px-2 py-2">
<span>
<span class="text-bold">{{ fileStats.directories }}</span>
{{ (fileStats.directories === 1 ? 'directory' : 'directories') | translate: locale.language }}
</span>
- <span class="mx-1 lh-1">•</span>
+ <span class="mx-2 lh-1 text-muted">•</span>
<span>
<span class="text-bold">{{ fileStats.files }}</span>
{{ (fileStats.files === 1 ? 'file' : 'files') | translate: locale.language }}
</span>
@if (sizeSummary !== null) {
- <span class="mx-1 lh-1">•</span>
+ <span class="mx-2 lh-1 text-muted">•</span>
<span>
@if (sizeSummary.pendingDirectories || sizeSummary.hasError) {
≥&nbsp;
diff --git a/frontend/src/styles/components/_theme_dark.scss b/frontend/src/styles/components/_theme_dark.scss
index fe868e96..0e09cd2a 100755
--- a/frontend/src/styles/components/_theme_dark.scss
+++ b/frontend/src/styles/components/_theme_dark.scss
@@ -460,6 +460,10 @@
.app-small-card {
background-color: lighten($sidebar-dark-apps-menu-title-bg, 2%);
}
+ .files-summary-card {
+ background-color: $sidebar-dark-apps-menu-title-bg;
+ border-color: $sidebar-dark-icons-menu-border-color !important;
+ }
.wizard {
tbody tr {
&:hover {
diff --git a/frontend/src/styles/components/_theme_light.scss b/frontend/src/styles/components/_theme_light.scss
index 7a316077..4b697def 100755
--- a/frontend/src/styles/components/_theme_light.scss
+++ b/frontend/src/styles/components/_theme_light.scss
@@ -485,6 +485,10 @@
.app-small-card {
background-color: $light-sidebar-mini-bg;
}
+ .files-summary-card {
+ background-color: $theme-light-panel-bg;
+ border-color: $secondary !important;
+ }
.wizard {
background-color: lighten($primary, 50%);
diff --git a/frontend/src/styles/components/_tree.scss b/frontend/src/styles/components/_tree.scss
index a1056369..c460c3fe 100644
--- a/frontend/src/styles/components/_tree.scss
+++ b/frontend/src/styles/components/_tree.scss
@@ -5,13 +5,13 @@
@mixin directory($color) {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#{hexToRGBString($color)}" d="M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"/></svg>');
display: inline-block;
- width: 22px;
+ width: 24px;
}
@mixin caret($color) {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="#{hexToRGBString($color)}" d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"/></svg>');
display: inline-block;
- width: 9px;
+ width: 10px;
position: absolute;
left: 3px;
top: 4px;
@@ -20,7 +20,7 @@
@mixin file($color) {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#{hexToRGBString($color)}" d="M 384 442.876 C 392.8 442.876 400 436.406 400 428.5 L 400 169.751 L 320 169.751 C 302.3 169.751 288 156.902 288 141 L 288 69.125 L 128 69.125 C 119.2 69.125 112 75.594 112 83.5 L 112 428.5 C 112 436.406 119.2 442.876 128 442.876 L 384 442.876 Z M 64 83.5 C 64 51.785 92.7 26 128 26 L 293.5 26 C 310.5 26 326.8 32.019 338.8 42.801 L 429.3 124.109 C 441.3 134.891 448 149.534 448 164.808 L 448 428.5 C 448 460.215 419.3 486 384 486 L 128 486 C 92.7 486 64 460.215 64 428.5 L 64 83.5 Z"/></svg>');
display: inline-block;
- width: 22px;
+ width: 24px;
}
.angular-tree-component {