Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(frontend): standardize avatar and image dimensions
johaven6c95ae677256
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.htmlindex e20db783..d5a71f72 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@@ -13,8 +13,8 @@<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]="29" [height]="29"></app-user-avatar>+ <span>+ <app-user-avatar [user]="c.author" [container]="'body'"></app-user-avatar></span><span class="recent-item-card__content"><span class="recent-item-card__title">{{ c.content }}</span>diff --git a/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html b/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.htmlindex bffd7082..5692f7bd 100644--- a/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html+++ b/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html@@ -11,8 +11,8 @@[class.cursor-pointer]="!!r.file.path"[tooltip]="r.file.path"draggable="false"- height="35"- width="35"+ height="32"+ width="32"alt=""><div class="d-flex flex-column text-truncate w-100 ms-2">@if (r.isRenamed) {diff --git a/frontend/src/app/applications/sync/components/sync-clients.component.html b/frontend/src/app/applications/sync/components/sync-clients.component.htmlindex 31c10a81..34975a57 100644--- a/frontend/src/app/applications/sync/components/sync-clients.component.html+++ b/frontend/src/app/applications/sync/components/sync-clients.component.html@@ -84,9 +84,9 @@<img [src]="path.mimeUrl" alt="" class="sync-path-image" draggable="false"><div class="d-flex flex-column text-truncate ms-2"><span class="fs-base text-truncate user-select-none text-bold">{{ path.settings.name }}</span>- <div class="d-flex align-items-center text-{{path.iconClass}}">- <fa-icon [icon]="path.icon" class="me-1"></fa-icon>- <span class="fs-sm text-truncate user-select-none">{{ path.showedPath }}</span>+ <div class="d-inline-flex align-items-center text-{{path.iconClass}} fs-sm">+ <fa-icon [icon]="path.icon" size="1x" class="me-1"></fa-icon>+ <span class="text-truncate user-select-none">{{ path.showedPath }}</span></div></div></div>diff --git a/frontend/src/app/applications/sync/components/sync-clients.component.scss b/frontend/src/app/applications/sync/components/sync-clients.component.scssindex ca1db7f9..78f23e69 100644--- a/frontend/src/app/applications/sync/components/sync-clients.component.scss+++ b/frontend/src/app/applications/sync/components/sync-clients.component.scss@@ -154,8 +154,8 @@ $sync-client-card-radius: 0.9rem;}.sync-path-image {- height: 40px;- width: 40px;+ height: 36px;+ width: 36px;object-fit: contain;flex-shrink: 0;}diff --git a/frontend/src/app/applications/users/components/utils/user-avatar.component.ts b/frontend/src/app/applications/users/components/utils/user-avatar.component.tsindex 18762fc4..8ddc34d1 100644--- a/frontend/src/app/applications/users/components/utils/user-avatar.component.ts+++ b/frontend/src/app/applications/users/components/utils/user-avatar.component.ts@@ -69,8 +69,8 @@ export class UserAvatarComponent implements OnInit {@Input() user: OwnerType | MemberModel | any@Input() isMember = false@Input() unknownUserAsInfo = false- @Input() height = 30- @Input() width = 30+ @Input() height = 32+ @Input() width = 32@Input() fontSize = 16@Input() tooltipPlacement: AvailableBSPositions = 'auto'@Input() container: string = nulldiff --git a/frontend/src/app/applications/users/components/utils/users-search.component.html b/frontend/src/app/applications/users/components/utils/users-search.component.htmlindex 2b846e46..1ffed2f6 100644--- a/frontend/src/app/applications/users/components/utils/users-search.component.html+++ b/frontend/src/app/applications/users/components/utils/users-search.component.html@@ -2,7 +2,7 @@<div class="d-flex" role="button"><div class="d-flex align-items-center text-truncate">@if (member.isUser) {- <img alt="" class="avatar-base-img" height="30" width="30" [src]="member.avatarUrl" />+ <img alt="" class="avatar-base-img" height="32" width="32" [src]="member.avatarUrl" />} @else {<fa-icon [icon]="icons.GROUPS"class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">@@ -48,7 +48,7 @@<div class="d-flex align-items-center text-truncate no-select" style="max-height: 38px"><div class="d-flex align-items-center text-truncate w-100">@if (member.isUser) {- <img alt="" class="avatar-base-img" height="35" width="35" [src]="member.avatarUrl" />+ <img alt="" class="avatar-base-img" height="32" width="32" [src]="member.avatarUrl" />} @else if (member.isLink) {<fa-icon [icon]="icons.LINKS" class="circle-primary-icon"></fa-icon>} @else {diff --git a/frontend/src/app/common/components/select/select.component.scss b/frontend/src/app/common/components/select/select.component.scssindex 283b5692..23d489b7 100644--- a/frontend/src/app/common/components/select/select.component.scss+++ b/frontend/src/app/common/components/select/select.component.scss@@ -13,9 +13,9 @@}.ui-icon {- min-width: 26px;- min-height: 26px;- font-size: calc(var(--font-size-base) * 0.9066667);+ min-width: 32px;+ min-height: 32px;+ font-size: var(--font-size-lg);}.ui-disabled {diff --git a/frontend/src/styles/components/_mixins.scss b/frontend/src/styles/components/_mixins.scssindex f99a06a6..9b2ad5fc 100644--- a/frontend/src/styles/components/_mixins.scss+++ b/frontend/src/styles/components/_mixins.scss@@ -72,8 +72,8 @@display: flex;align-items: center;justify-content: center;- min-width: 30px;- min-height: 30px;+ min-width: 32px;+ min-height: 32px;font-size: $font-size-lg;border-radius: 50%;}