Skip to content

Commit c5b5e4d

Browse files
authored
Merge pull request #11 from prgrms-aibe-devcourse/bug/10-diff-panel-layout
[Bug] PRReviewPanel DIFF 탭 변경 파일 목록 잘림 UI 수정
2 parents b8c3db5 + a53c836 commit c5b5e4d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/components/PRReviewPanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ export function PRReviewPanel({ prData, onClose, onMergePR }: PRReviewPanelProps
14271427

14281428
const renderDiffTab = () => (
14291429
<div
1430-
className="grid h-full min-h-0 overflow-hidden rounded-2xl"
1430+
className="grid grid-rows-1 h-full min-h-0 overflow-hidden rounded-2xl"
14311431
style={{
14321432
gridTemplateColumns: "230px minmax(0, 1fr) 380px",
14331433
background: "rgba(5, 11, 20, 0.42)",
@@ -1454,7 +1454,7 @@ export function PRReviewPanel({ prData, onClose, onMergePR }: PRReviewPanelProps
14541454
key={file.id}
14551455
type="button"
14561456
onClick={() => setActiveFileId(file.id)}
1457-
className="rounded-xl p-3 text-left transition-all"
1457+
className="w-full min-w-0 overflow-hidden rounded-xl p-3 text-left transition-all"
14581458
style={{
14591459
background: isActive ? "rgba(32, 227, 255, 0.10)" : "transparent",
14601460
border: isActive ? "1px solid rgba(57, 255, 136, 0.28)" : "1px solid transparent",
@@ -1713,7 +1713,7 @@ export function PRReviewPanel({ prData, onClose, onMergePR }: PRReviewPanelProps
17131713
</div>
17141714
</main>
17151715

1716-
<aside className="flex min-h-0 flex-col" style={{ borderLeft: "1px solid rgba(32, 227, 255, 0.12)" }}>
1716+
<aside className="flex min-h-0 flex-col overflow-hidden" style={{ borderLeft: "1px solid rgba(32, 227, 255, 0.12)" }}>
17171717
{renderPrThreadChat()}
17181718
{false && (() => {
17191719
const activeThreadFile = activeDiffThread

0 commit comments

Comments
 (0)