Skip to content

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

chore(frontend): improve recents UI

johaven1dcfa5c85702
diff --git a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html
index 0b8bbcf7..3c16ea14 100644
--- a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html
+++ b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html
@@ -1,41 +1,37 @@
-<div class="box-transparent">
- <div class="box-header">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
- <span class="box-title" l10nTranslate>Comments</span>
- <fa-icon [icon]="moreElements ? icons.faMagnifyingGlassMinus : icons.faMagnifyingGlassPlus"
- (click)="switchMore()"
- class="ms-auto btn-link"
- role="button">
- </fa-icon>
+<div class="recents-widget-card">
+ <div class="recents-widget-card__header">
+ <div class="recents-widget-card__title-wrap">
+ <span class="recents-widget-card__title-icon">
+ <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ </span>
+ <span class="recents-widget-card__title" l10nTranslate>Comments</span>
+ </div>
+ <button type="button" class="recents-widget-card__toggle" (click)="switchMore()">
+ <fa-icon [icon]="moreElements ? icons.faMagnifyingGlassMinus : icons.faMagnifyingGlassPlus"></fa-icon>
+ </button>
</div>
- <div class="box-body p-0">
- @for (c of comments(); track c.id; let last = $last) {
- <ul class="products-list product-list-in-box" [class.border-0]="last">
- <li (click)="goToFile(c)" class="item">
- <div style="margin-right: 0.5rem;">
- <app-user-avatar [user]="c.author" [container]="'body'"></app-user-avatar>
- </div>
- <div class="product-info">
- <span class="product-title">
- <span>{{ c.content }}</span>
+ <div class="recents-widget-card__body">
+ @for (c of comments(); track c.id; let i = $index) {
+ <button type="button" class="recent-item-card" [style.animation-delay.ms]="i * 22" (click)="goToFile(c)">
+ <span class="recent-item-card__media">
+ <app-user-avatar [user]="c.author" [container]="'body'" [width]="28" [height]="28"></app-user-avatar>
+ </span>
+ <span class="recent-item-card__content">
+ <span class="recent-item-card__title">{{ c.content }}</span>
+ <span class="recent-item-card__path text-{{c.iconClass}}">
+ @if (c.file.inTrash) {
+ <fa-icon [icon]="icons.faTrashAlt"></fa-icon>
+ }
+ <fa-icon [icon]="c.icon" class="me-1"></fa-icon>
+ <span>{{ c.showedPath }}</span>
</span>
- <span class="product-description text-{{c.iconClass}}">
- @if (c.file.inTrash) {
- <fa-icon [icon]="icons.faTrashAlt"></fa-icon>
- }
- <fa-icon [icon]="c.icon" class="me-1"></fa-icon>
- <span>{{ c.showedPath }}</span>
- </span>
- </div>
- <div class="product-badge">
- <span class="fs-4xs text-muted">{{ c.modifiedAt | amTimeAgo }}</span>
- </div>
- </li>
- </ul>
+ </span>
+ <span class="recent-item-card__time">{{ c.modifiedAt | amTimeAgo }}</span>
+ </button>
} @empty {
- <div class="d-flex flex-column justify-content-center text-align-center text-gray p-4" style="min-height: 200px;">
+ <div class="recent-empty-state">
<fa-icon [icon]="icons.faCommentDots" size="2x"></fa-icon>
- <div class="mt-4" l10nTranslate>No recent comments</div>
+ <div class="mt-3" l10nTranslate>No recent comments</div>
</div>
}
</div>
diff --git a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.scss b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.scss
new file mode 100644
index 00000000..1851b2a2
--- /dev/null
+++ b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.scss
@@ -0,0 +1,6 @@
+.recent-item-card__media {
+ border-radius: 999px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
diff --git a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts
index ce666e85..2b3fd539 100644
--- a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts
+++ b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts
@@ -16,7 +16,8 @@ import { CommentsService } from '../../services/comments.service'
@Component({
selector: 'app-comments-recents-widget',
imports: [L10nTranslateDirective, FaIconComponent, TimeAgoPipe, UserAvatarComponent],
- templateUrl: './comments-recents-widget.component.html'
+ templateUrl: './comments-recents-widget.component.html',
+ styleUrl: './comments-recents-widget.component.scss'
})
export class CommentsRecentsWidgetComponent {
protected moreElements = false
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts b/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts
index 1cc84b3c..c056e176 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts
+++ b/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts
@@ -267,7 +267,9 @@ export class FilesTreeComponent implements OnInit, OnDestroy {
private collapseChildren(node: TreeNode, children: TreeNode[]) {
for (const child of children) {
- if ([0, -1, -2].indexOf(child.id) === -1 && child.id !== node.id) {
+ // ignore auto collapse
+ // if ([0, -1, -2].indexOf(child.id) === -1 && child.id !== node.id)
+ if (child.id !== node.id) {
child.data.isExpanded = false
child.collapse()
}
diff --git a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html
index 9f086c4b..3b5d4f6f 100644
--- a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html
+++ b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html
@@ -1,41 +1,37 @@
-<div class="box-transparent">
- <div class="box-header">
- <fa-icon [icon]="icons.faFileLines"></fa-icon>
- <span class="box-title" l10nTranslate>Files</span>
- <fa-icon [icon]="moreElements ? icons.faMagnifyingGlassMinus : icons.faMagnifyingGlassPlus"
- (click)="switchMore()"
- class="ms-auto btn-link"
- role="button">
- </fa-icon>
+<div class="recents-widget-card">
+ <div class="recents-widget-card__header">
+ <div class="recents-widget-card__title-wrap">
+ <span class="recents-widget-card__title-icon">
+ <fa-icon [icon]="icons.faFileLines"></fa-icon>
+ </span>
+ <span class="recents-widget-card__title" l10nTranslate>Files</span>
+ </div>
+ <button type="button" class="recents-widget-card__toggle" (click)="switchMore()">
+ <fa-icon [icon]="moreElements ? icons.faMagnifyingGlassMinus : icons.faMagnifyingGlassPlus"></fa-icon>
+ </button>
</div>
- <div class="box-body p-0">
- @for (f of files(); track f.id; let last = $last) {
- <ul class="products-list product-list-in-box" [class.border-0]="last">
- <li (click)="goToFile(f)" class="item">
- <div class="product-img">
- <img [src]="f.mimeUrl" alt="" (error)="f.fallBackMimeUrl()">
- </div>
- <div class="product-info">
- <span class="product-title">
- <span>{{ f.name }}</span>
+ <div class="recents-widget-card__body">
+ @for (f of files(); track f.id; let i = $index) {
+ <button type="button" class="recent-item-card" [style.animation-delay.ms]="i * 22" (click)="goToFile(f)">
+ <span class="recent-item-card__media">
+ <img [src]="f.mimeUrl" alt="" (error)="f.fallBackMimeUrl()">
+ </span>
+ <span class="recent-item-card__content">
+ <span class="recent-item-card__title">{{ f.name }}</span>
+ <span class="recent-item-card__path text-{{f.iconClass}}">
+ @if (f.inTrash) {
+ <fa-icon [icon]="icons.faTrashAlt"></fa-icon>
+ }
+ <fa-icon [icon]="f.icon" class="me-1"></fa-icon>
+ <span>{{ f.showedPath }}</span>
</span>
- <span class="product-description text-{{f.iconClass}}">
- @if (f.inTrash) {
- <fa-icon [icon]="icons.faTrashAlt"></fa-icon>
- }
- <fa-icon [icon]="f.icon" class="me-1"></fa-icon>
- <span>{{ f.showedPath }}</span>
- </span>
- </div>
- <div class="product-badge">
- <span class="fs-4xs text-muted">{{ f.mtime | amTimeAgo }}</span>
- </div>
- </li>
- </ul>
+ </span>
+ <span class="recent-item-card__time">{{ f.mtime | amTimeAgo }}</span>
+ </button>
} @empty {
- <div class="d-flex flex-column justify-content-center text-align-center text-gray p-4" style="min-height: 200px;">
+ <div class="recent-empty-state">
<fa-icon [icon]="icons.faFileLines" size="2x"></fa-icon>
- <div class="mt-4" l10nTranslate>No recent files</div>
+ <div class="mt-3" l10nTranslate>No recent files</div>
</div>
}
</div>
diff --git a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.scss b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.scss
new file mode 100644
index 00000000..92ba6a73
--- /dev/null
+++ b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.scss
@@ -0,0 +1,11 @@
+.recent-item-card__media {
+ border-radius: 0.55rem;
+ display: grid;
+ place-items: center;
+}
+
+.recent-item-card__media img {
+ width: 1.1rem;
+ height: 1.1rem;
+ object-fit: contain;
+}
diff --git a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts
index 5896e927..e53e7d48 100644
--- a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts
+++ b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts
@@ -13,7 +13,8 @@ import { FilesService } from '../../services/files.service'
@Component({
selector: 'app-files-recents-widget',
imports: [L10nTranslateDirective, FaIconComponent, TimeAgoPipe],
- templateUrl: './files-recents-widget.component.html'
+ templateUrl: './files-recents-widget.component.html',
+ styleUrl: './files-recents-widget.component.scss'
})
export class FilesRecentsWidgetComponent {
protected moreElements = false
diff --git a/frontend/src/app/applications/recents/components/recents.component.html b/frontend/src/app/applications/recents/components/recents.component.html
index d6b5d987..90205cc6 100644
--- a/frontend/src/app/applications/recents/components/recents.component.html
+++ b/frontend/src/app/applications/recents/components/recents.component.html
@@ -1,5 +1,5 @@
-<div appAutoResize class="fs-xs px-2" [useMaxHeight]="false" [resizeOffset]="40">
- <div class="row recents-grid">
+<div appAutoResize class="fs-xs recents-dashboard" [useMaxHeight]="false" [resizeOffset]="40">
+ <div class="row recents-grid g-2">
<div class="col-md-6">
<app-files-recents-widget></app-files-recents-widget>
</div>
diff --git a/frontend/src/app/applications/recents/components/recents.component.scss b/frontend/src/app/applications/recents/components/recents.component.scss
new file mode 100644
index 00000000..88056840
--- /dev/null
+++ b/frontend/src/app/applications/recents/components/recents.component.scss
@@ -0,0 +1,14 @@
+.recents-dashboard {
+ padding: 0.05rem 0.2rem 0.25rem;
+}
+
+.recents-grid {
+ margin-left: 0;
+ margin-right: 0;
+}
+
+@media (max-width: 1199.98px) {
+ .recents-dashboard {
+ padding-inline: 0.1rem;
+ }
+}
diff --git a/frontend/src/app/applications/recents/components/recents.component.ts b/frontend/src/app/applications/recents/components/recents.component.ts
index 3b16176b..33b48748 100644
--- a/frontend/src/app/applications/recents/components/recents.component.ts
+++ b/frontend/src/app/applications/recents/components/recents.component.ts
@@ -8,7 +8,8 @@ import { RECENTS_ICON, RECENTS_PATH, RECENTS_TITLE } from '../recents.constants'
@Component({
selector: 'app-recents',
imports: [AutoResizeDirective, FilesRecentsWidgetComponent, CommentsRecentsWidgetComponent],
- templateUrl: './recents.component.html'
+ templateUrl: './recents.component.html',
+ styleUrl: './recents.component.scss'
})
export class RecentsComponent {
private readonly layout = inject(LayoutService)
diff --git a/frontend/src/app/applications/sync/components/sync-paths.component.html b/frontend/src/app/applications/sync/components/sync-paths.component.html
index 9af2d9b4..fdbc122f 100644
--- a/frontend/src/app/applications/sync/components/sync-paths.component.html
+++ b/frontend/src/app/applications/sync/components/sync-paths.component.html
@@ -188,7 +188,7 @@
<span>{{ s.settings.name }}</span>
<span class="d-flex align-items-center ms-auto">
@if (s.nbSyncTasks) {
- <span class="badge bg-maroon">{{ s._nbTasks }}</span>
+ <span class="badge bg-maroon">{{ s.nbSyncTasks }}</span>
}
@if (s.mainError) {
<span [tooltip]="s.mainError | translate:locale.language" class="badge bg-danger cursor-pointer ms-1" placement="right">
diff --git a/frontend/src/app/common/components/badge-members.component.ts b/frontend/src/app/common/components/badge-members.component.ts
index c919fe9d..6ab5d3e3 100644
--- a/frontend/src/app/common/components/badge-members.component.ts
+++ b/frontend/src/app/common/components/badge-members.component.ts
@@ -20,23 +20,72 @@ interface BadgeEntry {
imports: [FaIconComponent],
template: `
@if (entries.length) {
- <span>
- @for (entry of entries; track entry.key) {
- <span class="badge bg-secondary" [class.me-1]="!$last">
- <fa-icon [icon]="entry.icon"></fa-icon>
- {{ entry.value }}
- </span>
- }
+ <span class="members-summary" [attr.title]="tooltipText">
+ <span class="members-breakdown">
+ @for (entry of entries; track entry.key) {
+ <span class="members-part">
+ <fa-icon [icon]="entry.icon" [class.members-icon-user]="entry.key === 'users'"></fa-icon>
+ <span class="members-value">{{ entry.value }}</span>
+ </span>
+ }
+ </span>
</span>
}
- `
+ `,
+ styles: [
+ `
+ :host {
+ --members-breakdown-color: #5f6f81;
+ display: inline-block;
+ max-width: 100%;
+ }
+
+ :host-context(body.theme-dark) {
+ --members-breakdown-color: #a7b4c2;
+ }
+
+ .members-summary {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ max-width: 100%;
+ line-height: 1.2;
+ white-space: nowrap;
+ }
+
+ .members-breakdown {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5rem;
+ color: var(--members-breakdown-color);
+ font-size: 0.8125rem;
+ }
+
+ .members-part {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.2rem;
+ }
+
+ .members-icon-user {
+ margin-right: -0.14rem;
+ }
+
+ .members-value {
+ font-size: 0.765rem;
+ line-height: 1;
+ }
+ `
+ ]
})
export class BadgeMembersComponent implements OnChanges {
@Input({ required: true }) members: BadgeMembersCounts = { users: 0, groups: 0, links: 0 }
protected entries: BadgeEntry[] = []
+ protected tooltipText = ''
ngOnChanges() {
this.entries = this.buildEntries()
+ this.tooltipText = this.entries.map((entry) => `${entry.key}: ${entry.value}`).join(' • ')
}
private buildEntries(): BadgeEntry[] {
diff --git a/frontend/src/app/common/pipes/search.pipe.ts b/frontend/src/app/common/pipes/search.pipe.ts
index 54a8ccf6..4c68eff5 100644
--- a/frontend/src/app/common/pipes/search.pipe.ts
+++ b/frontend/src/app/common/pipes/search.pipe.ts
@@ -5,9 +5,9 @@ import { filterArray } from '../utils/functions'
name: 'searchFilter'
})
export class SearchFilterPipe implements PipeTransform {
- transform(collection: any[], search: string, field?: string): any[] {
+ transform<T>(collection: T[] | null | undefined, search: string, field?: string): T[] {
if (!collection?.length || !search) {
- return collection
+ return collection ?? []
}
return filterArray(search, collection, field)
}
diff --git a/frontend/src/app/common/utils/functions.ts b/frontend/src/app/common/utils/functions.ts
index c12d4e50..d8a2aa49 100644
--- a/frontend/src/app/common/utils/functions.ts
+++ b/frontend/src/app/common/utils/functions.ts
@@ -149,7 +149,7 @@ export function titleCase(input: string) {
export const originalOrderKeyValue = () => 0
-export function filterArray(search: string, collection: any[], field?: string) {
+export function filterArray<T>(search: string, collection: T[], field?: string): T[] {
const searchRegexp = new RegExp(search, 'i')
if (field) {
return collection.filter((obj) => searchRegexp.test(obj[field].normalize()))
diff --git a/frontend/src/styles/components/_buttons.scss b/frontend/src/styles/components/_buttons.scss
index f740b263..593b3567 100644
--- a/frontend/src/styles/components/_buttons.scss
+++ b/frontend/src/styles/components/_buttons.scss
@@ -150,6 +150,7 @@
.btn-minimize {
@extend .btn-close;
+ background: transparent url("#{$theme-btn-minimize-icon-svg}") center/1em auto no-repeat;
}
.btn-minimize-white {
@@ -195,3 +196,11 @@ $button-dark-variants: (
semantic-dark($dark-key, fg)
);
}
+
+.btn-outline-blue {
+ @include button-outline-variant($primary);
+}
+
+.btn[class*='bg-']:hover {
+ @include box-shadow(inset 0 0 100px $theme-btn-bg-hover-overlay-shadow);
+}
diff --git a/frontend/src/styles/components/_modal.scss b/frontend/src/styles/components/_modal.scss
index 8d96cde0..236bc903 100644
--- a/frontend/src/styles/components/_modal.scss
+++ b/frontend/src/styles/components/_modal.scss
@@ -88,6 +88,11 @@
}
+.dialog-check-card--interactive {
+ cursor: pointer;
+ transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
+}
+
.modal-xs {
max-width: $modal-xs;
--bs-modal-width: $modal-xs;
diff --git a/frontend/src/styles/components/_recents.scss b/frontend/src/styles/components/_recents.scss
new file mode 100644
index 00000000..53f1f541
--- /dev/null
+++ b/frontend/src/styles/components/_recents.scss
@@ -0,0 +1,146 @@
+.recents-widget-card {
+ position: relative;
+ width: 100%;
+ border: 1px solid;
+ border-radius: 12px;
+ overflow: hidden;
+ transition: box-shadow 0.14s ease;
+}
+
+.recents-widget-card__header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.75rem;
+ padding: 0.45rem 0.6rem;
+ border-bottom: 1px solid;
+}
+
+.recents-widget-card__title-wrap {
+ display: flex;
+ align-items: center;
+ min-width: 0;
+ gap: 0.55rem;
+}
+
+.recents-widget-card__title-icon {
+ width: 1.55rem;
+ height: 1.55rem;
+ border-radius: 0.55rem;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 0.78rem;
+}
+
+.recents-widget-card__title {
+ display: inline-block;
+ line-height: 1;
+ font-size: $font-size-sm;
+ font-weight: 450;
+ user-select: none;
+}
+
+.recents-widget-card__toggle {
+ width: 1.65rem;
+ height: 1.65rem;
+ border-radius: 0.55rem;
+ border: 1px solid transparent;
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ appearance: none;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.recents-widget-card__body {
+ padding: 0.4rem;
+}
+
+.recent-item-card {
+ width: 100%;
+ border: 1px solid transparent;
+ border-radius: 0.65rem;
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ appearance: none;
+ padding: 0.32rem 0.42rem;
+ display: grid;
+ grid-template-columns: 1.9rem minmax(0, 1fr) auto;
+ align-items: center;
+ gap: 0.45rem;
+ text-align: left;
+ cursor: pointer;
+ animation: recent-card-enter 0.26s ease both;
+ transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
+
+ + .recent-item-card {
+ margin-top: 0.28rem;
+ }
+}
+
+.recent-item-card:hover {
+ transform: translateY(-1px);
+}
+
+.recent-item-card__media {
+ width: 1.9rem;
+ height: 1.9rem;
+}
+
+.recent-item-card__content {
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 0.05rem;
+}
+
+.recent-item-card__title {
+ line-height: 1.2;
+ font-size: $font-size-xs;
+ font-weight: 450;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.recent-item-card__path {
+ line-height: 1.15;
+ font-size: $font-size-3xs;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.recent-item-card__time {
+ white-space: nowrap;
+ font-size: $font-size-4xs;
+ margin-left: 0.25rem;
+}
+
+.recent-empty-state {
+ min-height: 150px;
+ border-radius: 0.65rem;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ padding: 0.85rem;
+}
+
+@keyframes recent-card-enter {
+ from {
+ opacity: 0;
+ transform: translateY(5px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
diff --git a/frontend/src/styles/components/_theme_dark.scss b/frontend/src/styles/components/_theme_dark.scss
index 72b2dd74..e8c29afd 100755
--- a/frontend/src/styles/components/_theme_dark.scss
+++ b/frontend/src/styles/components/_theme_dark.scss
@@ -154,10 +154,6 @@
.dialog-check-card {
border: 1px solid $dark-dialog-check-card-border-color;
}
- .dialog-check-card--interactive {
- cursor: pointer;
- transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
- }
.dialog-check-card--interactive:hover {
border-color: $dark-dialog-check-card-hover-border-color;
box-shadow: 0 6px 14px $dark-dialog-check-card-hover-shadow-color;
@@ -244,15 +240,6 @@
border-color: $primary !important;
color: $white !important;
}
- .btn-outline-blue {
- @include button-outline-variant($primary);
- }
- .btn[class*='bg-']:hover {
- @include box-shadow(inset 0 0 100px $theme-btn-bg-hover-overlay-shadow);
- }
- .btn-minimize {
- background: transparent url("#{$theme-btn-minimize-icon-svg}") center/1em auto no-repeat;
- }
app-input-filter {
.filter-shell {
border-color: $dark-surface-border;
@@ -456,7 +443,7 @@
border-bottom-color: $dark-control-sidebar-separator-color !important;
}
.profile-page {
- background-color: lighten($sidebar-dark-apps-menu-title-bg, 4%);
+ background-color: lighten($sidebar-dark-apps-menu-title-bg, 8%);
}
.task-list {
border-bottom-color: $sidebar-dark-icons-menu-border-color;
@@ -655,6 +642,74 @@
border: 1px solid $sidebar-dark-icons-menu-border-color;
}
}
+ app-files-recents-widget,
+ app-comments-recents-widget {
+ .recents-widget-card {
+ border-color: rgba($dark-surface-border, 0.6);
+ box-shadow: 0 16px 34px $dark-box-transparent-shadow-color;
+ background: linear-gradient(175deg, rgba($dark-surface-bg, 0.96) 0%, rgba($dark-bg-theme, 0.97) 100%);
+ }
+
+ .recents-widget-card__header {
+ border-bottom-color: rgba($dark-surface-border, 0.5);
+ background: $sidebar-dark-apps-menu-title-bg;
+ }
+
+ .recents-widget-card__title {
+ color: $dark-item-hover-color;
+ }
+
+ .recents-widget-card__title-icon {
+ color: $dark-item-hover-color;
+ background: rgba($dark-bg-theme, 0.45);
+ border: 1px solid rgba($dark-surface-border, 0.4);
+ }
+
+ .recents-widget-card__toggle {
+ color: $dark-item-color;
+ background: rgba($dark-bg-theme, 0.65);
+ border-color: rgba($dark-surface-border, 0.46);
+ }
+
+ .recents-widget-card__toggle:hover {
+ background: rgba(lighten($sidebar-dark-apps-menu-title-bg, 7%), 0.82);
+ color: $dark-item-hover-color;
+ }
+
+ .recents-widget-card__body {
+ background: linear-gradient(180deg, rgba($dark-bg-theme, 0.7) 0%, rgba(darken($dark-bg-theme, 3%), 0.82) 100%);
+ }
+
+ .recent-item-card {
+ background: rgba($sidebar-dark-apps-menu-title-bg, 0.72);
+ border-color: rgba($dark-surface-border, 0.52);
+ box-shadow: 0 8px 20px rgba($black, 0.26);
+ }
+
+ .recent-item-card:hover {
+ border-color: mix($primary, $dark-surface-border, 58%);
+ background: rgba(lighten($sidebar-dark-apps-menu-title-bg, 6%), 0.88);
+ }
+
+ .recent-item-card__title {
+ color: $dark-item-hover-color;
+ }
+
+ .recent-item-card__media {
+ background: rgba($dark-bg-theme, 0.72);
+ border: 1px solid rgba($dark-surface-border, 0.42);
+ }
+
+ .recent-item-card__time {
+ color: $theme-muted-blue;
+ }
+
+ .recent-empty-state {
+ background: rgba($sidebar-dark-apps-menu-title-bg, 0.75);
+ color: $dark-item-color;
+ border: 1px dashed rgba($dark-surface-border, 0.5);
+ }
+ }
.products-list > li:hover {
background-color: darken($sidebar-dark-apps-menu-title-bg, 2%);
}
diff --git a/frontend/src/styles/components/_theme_light.scss b/frontend/src/styles/components/_theme_light.scss
index c984dc8d..d622b11c 100755
--- a/frontend/src/styles/components/_theme_light.scss
+++ b/frontend/src/styles/components/_theme_light.scss
@@ -175,10 +175,6 @@
background: $light-dialog-check-card-bg;
border: 1px solid $light-dialog-check-card-border-color;
}
- .dialog-check-card--interactive {
- cursor: pointer;
- transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
- }
.dialog-check-card--interactive:hover {
background: $light-dialog-check-card-hover-bg;
border-color: $light-dialog-check-card-hover-border-color;
@@ -278,15 +274,6 @@
border-color: $primary !important;
color: $white !important;
}
- .btn-outline-blue {
- @include button-outline-variant($primary);
- }
- .btn[class*='bg-']:hover {
- @include box-shadow(inset 0 0 100px $theme-btn-bg-hover-overlay-shadow);
- }
- .btn-minimize {
- background: transparent url("#{$theme-btn-minimize-icon-svg}") center/1em auto no-repeat;
- }
app-input-filter {
.filter-shell {
border-color: $light-surface-border;
@@ -469,7 +456,7 @@
color: $custom-color;
}
.profile-page {
- background-color: $gray-lightest;
+ background-color: $white;
.box {
background-color: $gray-lighter;
@@ -646,24 +633,72 @@
.text-bg-light {
background-color: $white !important;
}
- .recents-grid .box-transparent > .box-header {
- background: $light-recents-box-header-bg;
- border-bottom-color: mix($primary, $white, 20%);
+ app-files-recents-widget,
+ app-comments-recents-widget {
+ .recents-widget-card {
+ border-color: rgba($light-surface-border, 0.5);
+ box-shadow: 0 14px 34px $light-box-transparent-shadow-color;
+ background: linear-gradient(160deg, $light-app-top-menu-gradient-end 0%, $light-menu-surface-bg 100%);
+ }
- > fa-icon {
- color: lighten($navy, 8%);
+ .recents-widget-card__header {
+ border-bottom-color: rgba($light-surface-border, 0.5);
+ background: linear-gradient(125deg, $light-app-top-menu-gradient-start 0%, $theme-light-panel-bg 100%);
}
- .box-title {
+ .recents-widget-card__title {
color: lighten($navy, 8%);
}
- .btn-link {
- color: darken($gray, 24%);
+ .recents-widget-card__title-icon {
+ color: darken($primary, 11%);
+ background: rgba($white, 0.7);
+ border: 1px solid rgba($light-surface-border, 0.4);
+ }
- &:hover, &:focus {
- color: darken($primary, 8%);
- }
+ .recents-widget-card__toggle {
+ color: mix($navy, $primary, 40%);
+ background: rgba($white, 0.72);
+ border-color: rgba($light-surface-border, 0.48);
+ }
+
+ .recents-widget-card__toggle:hover {
+ color: darken($primary, 8%);
+ background: $white;
+ }
+
+ .recents-widget-card__body {
+ background: linear-gradient(180deg, $white 0%, $light-surface-bg 100%);
+ }
+
+ .recent-item-card {
+ background: $white;
+ border-color: rgba($light-surface-border, 0.5);
+ box-shadow: 0 5px 14px $light-dialog-tab-card-shadow-color;
+ }
+
+ .recent-item-card:hover {
+ border-color: $light-dialog-check-card-hover-border-color;
+ box-shadow: 0 10px 22px $light-dialog-check-card-hover-shadow-color;
+ }
+
+ .recent-item-card__title {
+ color: $light-item-color;
+ }
+
+ .recent-item-card__media {
+ background: $gray-lightest;
+ border: 1px solid rgba($light-surface-border, 0.42);
+ }
+
+ .recent-item-card__time {
+ color: $light-text-muted-color;
+ }
+
+ .recent-empty-state {
+ background: rgba($light-menu-surface-bg, 0.8);
+ color: $light-text-muted-color;
+ border: 1px dashed rgba($light-surface-border, 0.52);
}
}
.products-list > li:hover {
diff --git a/frontend/src/styles/components/_variables.scss b/frontend/src/styles/components/_variables.scss
index 6e00706d..05923fd2 100644
--- a/frontend/src/styles/components/_variables.scss
+++ b/frontend/src/styles/components/_variables.scss
@@ -164,7 +164,6 @@ $light-app-top-menu-gradient-start: #e1ebf8;
$light-app-top-menu-gradient-mid: $theme-light-panel-bg;
$light-app-top-menu-gradient-end: #f4f8fe;
$light-box-transparent-shadow-color: rgba(24, 32, 58, 0.1);
-$light-recents-box-header-bg: #e2ecf8;
//BOXES
//--------------------------------------------------------
$box-border-color: #f4f4f4;
diff --git a/frontend/src/styles/components/index.scss b/frontend/src/styles/components/index.scss
index fa50836d..5f37abf9 100644
--- a/frontend/src/styles/components/index.scss
+++ b/frontend/src/styles/components/index.scss
@@ -17,6 +17,7 @@
@import 'boxes';
@import 'profile';
@import 'products';
+@import 'recents';
@import 'tasks';
@import 'circles';
@import 'miscellaneous';