Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 2a72b35

Browse files
author
EC2 Default User
committed
Try fixing Scroll
1 parent e12dff0 commit 2a72b35

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/app/components/database/database.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ import { AdminService, TableInfo, TableData } from '../../services/admin.service
2929
MatChipsModule
3030
],
3131
template: `
32-
<div class="p-6 bg-md-sys-color-surface h-screen">
32+
<div class="p-6 bg-md-sys-color-surface h-screen overflow-hidden">
3333
<h1 class="md-typescale-headline-large text-md-sys-color-on-surface mb-6">데이터베이스 관리</h1>
3434
35-
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" style="height: calc(100vh - 8rem);">
35+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" style="height: calc(100vh - 120px);">
3636
<!-- 테이블 목록 -->
37-
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-1">
37+
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-1" style="max-height: 100%; display: flex; flex-direction: column; overflow: hidden;">
3838
<div class="flex items-center justify-between mb-4">
3939
<h2 class="md-typescale-title-large text-md-sys-color-on-surface">테이블 목록</h2>
4040
<button class="md-button md-button-text p-2 rounded-full" (click)="refreshTables()">
@@ -69,7 +69,7 @@ import { AdminService, TableInfo, TableData } from '../../services/admin.service
6969
</div>
7070
7171
<!-- 테이블 데이터 뷰어 -->
72-
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-2">
72+
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-2" style="max-height: 100%; display: flex; flex-direction: column; overflow: hidden;">
7373
<div class="flex items-center justify-between mb-4">
7474
<h2 class="md-typescale-title-large text-md-sys-color-on-surface">
7575
{{ selectedTable ? selectedTable.name : '테이블 뷰어' }}
@@ -185,9 +185,11 @@ import { AdminService, TableInfo, TableData } from '../../services/admin.service
185185
padding: 24px;
186186
display: flex;
187187
flex-direction: column;
188-
max-height: 100%;
188+
height: 100%;
189+
min-height: 0;
189190
}
190191
192+
191193
.md-button {
192194
border: none;
193195
cursor: pointer;

src/app/components/logs/logs.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import { AdminService, LogFile, LogContent } from '../../services/admin.service'
2727
FormsModule
2828
],
2929
template: `
30-
<div class="p-6 bg-md-sys-color-surface h-screen">
30+
<div class="p-6 bg-md-sys-color-surface h-screen overflow-hidden">
3131
<h1 class="md-typescale-headline-large text-md-sys-color-on-surface mb-6">로그 관리</h1>
3232
33-
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" style="height: calc(100vh - 8rem);">
33+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6" style="height: calc(100vh - 120px);">
3434
<!-- 로그 파일 목록 -->
35-
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-1" style="max-height: 100%; display: flex; flex-direction: column;">
35+
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-1" style="max-height: 100%; display: flex; flex-direction: column; overflow: hidden;">
3636
<div class="flex items-center justify-between mb-4">
3737
<h2 class="md-typescale-title-large text-md-sys-color-on-surface">로그 파일 목록</h2>
3838
<button class="md-button md-button-text p-2 rounded-full" (click)="refreshLogFiles()">
@@ -68,7 +68,7 @@ import { AdminService, LogFile, LogContent } from '../../services/admin.service'
6868
</div>
6969
7070
<!-- 로그 내용 뷰어 -->
71-
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-2" style="max-height: 100%; display: flex; flex-direction: column;">
71+
<div class="md-card bg-md-sys-color-surface-container text-md-sys-color-on-surface lg:col-span-2" style="max-height: 100%; display: flex; flex-direction: column; overflow: hidden;">
7272
<div class="flex items-center justify-between mb-4">
7373
<h2 class="md-typescale-title-large text-md-sys-color-on-surface">
7474
{{ selectedFile ? selectedFile.name : '로그 뷰어' }}
@@ -143,8 +143,10 @@ import { AdminService, LogFile, LogContent } from '../../services/admin.service'
143143
padding: 24px;
144144
display: flex;
145145
flex-direction: column;
146-
max-height: 100%;
146+
height: 100%;
147+
min-height: 0;
147148
}
149+
148150
149151
.md-button {
150152
border: none;

0 commit comments

Comments
 (0)