Skip to content

Commit 57f4f94

Browse files
committed
Refactor home layout for better responsiveness and remove unused imports
1 parent 7f31c8c commit 57f4f94

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/app/home/home.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,15 @@
105105
display: flex;
106106
flex-wrap: nowrap;
107107
justify-content: space-around;
108+
width: 100%;
109+
}
108110

111+
@media only screen and (max-width: 720px) {
112+
.home-left {
113+
flex-direction: column;
114+
align-items: center;
115+
gap: 1em;
116+
}
109117
}
110118

111119
.home-right {

src/app/home/home.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface DefaultProfile {
4545
selector: 'app-home',
4646
templateUrl: './home.html',
4747
styleUrls: ['./home.css'],
48-
imports: [DragScrollDirective, DragScrollComponent, MatButtonModule, AgoPipe, DirectoryIconComponent, EventHeaderComponent, MatIconModule, TranslateModule, MatCardModule, ContentComponent, EventActionsComponent, NotificationLabelComponent, CommonModule, RouterModule],
48+
imports: [DragScrollDirective, MatButtonModule, AgoPipe, DirectoryIconComponent, EventHeaderComponent, MatIconModule, TranslateModule, MatCardModule, ContentComponent, EventActionsComponent, NotificationLabelComponent, CommonModule, RouterModule],
4949
})
5050
export class HomeComponent {
5151
publicKey?: string | null;

0 commit comments

Comments
 (0)