diff --git a/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.module.css b/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.module.css index 98ee8f07..76516ee3 100644 --- a/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.module.css +++ b/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.module.css @@ -18,6 +18,10 @@ word-break: break-all; } +.preWrapper ol li { + padding-inline-start: 1rem; +} + .preWrapper ol li::marker { color: #a0aec0; content: attr(data-line-number); @@ -71,7 +75,7 @@ .jobLogs:fullscreen .preWrapper { height: 100%; - padding: 40px 1rem 1rem; + padding: 60px 1rem 1rem; } .toolbar .searchBar { diff --git a/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx b/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx index 856d2988..e6d8234e 100644 --- a/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx +++ b/packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx @@ -85,6 +85,8 @@ export const JobLogs = ({ actions, job }: JobLogsProps) => { event.preventDefault(); }; + const logsToShow = logs.filter((log) => shouldShow(log, keyword)); + return (
-          
    - {logs - .filter((log) => shouldShow(log, keyword)) - .map((log) => ( -
  1. - {log.message} -
  2. - ))} +
      + {logsToShow.map((log) => ( +
    1. + {log.message} +
    2. + ))}