Skip to content

Commit 9c795b9

Browse files
committed
improve UI
1 parent a3f679e commit 9c795b9

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

src/app/features/organization/pages/organization-management/organization-management.component.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,21 @@
1919
justify-content: space-between;
2020
align-items: center;
2121
margin-bottom: 1.2rem;
22+
flex-wrap: wrap; // Cho phép xuống dòng
2223

2324
h2 {
2425
color: var(--text-color);
2526
margin: 0;
27+
flex: 1; // h2 chiếm không gian còn lại để không bị bóp
2628
}
2729

2830
.header-actions {
2931
display: flex;
3032
gap: 1rem;
3133
align-items: center;
34+
flex-wrap: wrap; // Cho phép các nút xuống dòng khi thiếu chỗ
35+
justify-content: flex-end;
36+
3237
.btn {
3338
white-space: nowrap;
3439
p {
@@ -38,6 +43,40 @@
3843
}
3944
}
4045
}
46+
47+
/* Responsive cho màn nhỏ */
48+
@media (max-width: 1024px) {
49+
.header {
50+
flex-direction: column; // Header xuống 2 dòng: title + actions
51+
align-items: flex-start;
52+
gap: 0.8rem;
53+
54+
.header-actions {
55+
width: 100%;
56+
justify-content: flex-start; // Căn trái cho đồng bộ
57+
}
58+
}
59+
}
60+
61+
@media (max-width: 600px) {
62+
.header-actions {
63+
flex-direction: column; // Xếp dọc toàn bộ action
64+
align-items: stretch;
65+
gap: 0.5rem;
66+
67+
.search-bar input {
68+
width: 100%; // search full width
69+
}
70+
71+
.btn,
72+
.checkbox-filter {
73+
width: 100%; // Nút và filter chiếm hết chiều ngang
74+
justify-content: center;
75+
text-align: center;
76+
}
77+
}
78+
}
79+
4180
// Search Bar
4281
.search-bar {
4382
input {

src/app/features/post/pages/my-post/my-post.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ import {
66
PostCardInfo,
77
PostResponse,
88
} from '../../../../core/models/post.models';
9-
import { PopularPostComponent } from '../../../admin/post-management/component/popular-post/popular-post';
109
import { SkeletonLoadingComponent } from '../../../../shared/components/fxdonad-shared/skeleton-loading/skeleton-loading.component';
1110
import { Router } from '@angular/router';
12-
import {
13-
TrendingComponent,
14-
TrendingItem,
15-
} from '../../../../shared/components/fxdonad-shared/trending/trending.component';
11+
import { TrendingItem } from '../../../../shared/components/fxdonad-shared/trending/trending.component';
1612
import { PostService } from '../../../../core/services/api-service/post.service';
1713
import { Store } from '@ngrx/store';
1814
import { mapPostdatatoPostCardInfo } from '../../../../shared/utils/mapData';
@@ -34,9 +30,7 @@ import { getMyOrgId } from '../../../../shared/utils/userInfo';
3430
imports: [
3531
InputComponent,
3632
PostCardComponent,
37-
PopularPostComponent,
3833
SkeletonLoadingComponent,
39-
TrendingComponent,
4034
LottieComponent,
4135
ScrollEndDirective,
4236
BtnType1Component,

0 commit comments

Comments
 (0)