Skip to content

Commit 06f923e

Browse files
athul-abclaude
andcommitted
fix(budadmin): responsive log tree height and chart breakpoints
- Add responsive chart height breakpoints (180px-500px based on screen) - Change log rows container from fixed 500px to calc(100vh-400px) - Add min-h-[300px] to prevent too small on tiny screens Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0f469ab commit 06f923e

File tree

1 file changed

+2
-2
lines changed
  • services/budadmin/src/pages/home/agentDetails/[agentId]/logs

1 file changed

+2
-2
lines changed

services/budadmin/src/pages/home/agentDetails/[agentId]/logs/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ const LogsTab: React.FC<LogsTabProps> = ({ promptName, promptId, projectId }) =>
20762076
</div>
20772077

20782078
{/* Chart */}
2079-
<div ref={chartRef} className="w-full h-[180px]" />
2079+
<div ref={chartRef} className="w-full h-[180px] 1680px:h-[250px] 1920px:h-[320px] 2048px:h-[400px] 2560px:h-[500px]" />
20802080
</div>
20812081

20822082
{/* Logs List Section */}
@@ -2155,7 +2155,7 @@ const LogsTab: React.FC<LogsTabProps> = ({ promptName, promptId, projectId }) =>
21552155
<div className="relative">
21562156

21572157
{/* Log Rows */}
2158-
<div className="max-h-[500px] overflow-auto">
2158+
<div className="max-h-[calc(100vh-400px)] min-h-[300px] overflow-auto">
21592159
{isLoading ? (
21602160
<div className="flex items-center justify-center py-12">
21612161
<Spin size="large" />

0 commit comments

Comments
 (0)