Skip to content

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

chore(frontend): adjust layout and truncation behavior in user search and space root components

johaveneb9532a343bd
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.html
index 8073463d..bffd7082 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
@@ -1,7 +1,7 @@
@for (r of space.roots; track r.alias) {
<div class="bg-theme mb-1 px-3 py-2" style="border-radius: 4px">
- <div class="d-flex align-items-center text-truncate no-select fs-sm" style="max-height: 38px">
- <div class="d-flex align-items-center text-truncate me-auto">
+ <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 (showUsers) {
<app-user-avatar [user]="r.owner" tooltipPlacement="bottom"></app-user-avatar>
<div class="vr mx-2"></div>
@@ -14,7 +14,7 @@
height="35"
width="35"
alt="">
- <div class="d-flex flex-column text-truncate ms-2">
+ <div class="d-flex flex-column text-truncate w-100 ms-2">
@if (r.isRenamed) {
<input #InputRename appInputEdit (updateObject)="onRenameRoot($event)" [inputObject]="r" [fullWidth]="true" type="text" required>
} @else {
diff --git a/frontend/src/app/applications/users/components/utils/users-search.component.html b/frontend/src/app/applications/users/components/utils/users-search.component.html
index 6881a8da..2b846e46 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
@@ -45,8 +45,8 @@
<div class="col-12 mt-1">
@for (member of members; track member.mid) {
<div class="{{rowBackgroundClass}} mb-1 px-3 py-2" style="border-radius: 4px">
- <div class="d-flex align-items-center text-truncate no-select fs-sm" style="max-height: 38px">
- <div class="d-flex align-items-center text-truncate me-auto">
+ <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" />
} @else if (member.isLink) {
diff --git a/frontend/src/styles/variables.scss b/frontend/src/styles/variables.scss
index 04fdf607..4ae22a56 100644
--- a/frontend/src/styles/variables.scss
+++ b/frontend/src/styles/variables.scss
@@ -81,7 +81,7 @@ $h6-font-size: $font-size-base;
// --------------------------------------------------------
$body-bg: $gray-lighter;
-$body-color: #333;
+$body-color: #191c1d;
$custom-color: #212529;
$custom-dark-color: #28353b;
$list-group-color: $custom-color;