diff --git a/src/ui/components/JobCard/Details/Details.module.css b/src/ui/components/JobCard/Details/Details.module.css index c40dde32..1f2d8343 100644 --- a/src/ui/components/JobCard/Details/Details.module.css +++ b/src/ui/components/JobCard/Details/Details.module.css @@ -1,28 +1,84 @@ .details { - height: 100%; - display: flex; - flex-direction: column; + height: 100%; + display: flex; + flex-direction: column; } + .tabActions { - list-style: none; - padding: 0; - margin: 1rem 0 2rem; - display: flex; + list-style: none; + padding: 0; + margin: 1rem 0 2rem; + display: flex; } .tabActions li + li { - margin-left: 0.75rem; + margin-left: 0.75rem; } .tabContent { - flex: 1; - overflow: auto; - padding-right: 80px; + flex: 1; + margin-right: 80px; + position:relative; + overflow: hidden; +} + +.tabContent:before { + content: ''; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 2rem; + background: linear-gradient(270deg, + hsl(0, 0%, 100%) 0%, + hsla(0, 0%, 100%, 0.738) 19%, + hsla(0, 0%, 100%, 0.541) 34%, + hsla(0, 0%, 100%, 0.382) 47%, + hsla(0, 0%, 100%, 0.278) 56.5%, + hsla(0, 0%, 100%, 0.194) 65%, + hsla(0, 0%, 100%, 0.126) 73%, + hsla(0, 0%, 100%, 0.075) 80.2%, + hsla(0, 0%, 100%, 0.042) 86.1%, + hsla(0, 0%, 100%, 0.021) 91%, + hsla(0, 0%, 100%, 0.008) 95.2%, + hsla(0, 0%, 100%, 0.002) 98.2%, + hsla(0, 0%, 100%, 0) 100% + ); +} + +.tabContent:after { + content: ''; + position: absolute; + right: 0; + left: 0; + bottom: 0; + height: 2rem; + background: linear-gradient(0deg, + hsl(0, 0%, 100%) 0%, + hsla(0, 0%, 100%, 0.738) 19%, + hsla(0, 0%, 100%, 0.541) 34%, + hsla(0, 0%, 100%, 0.382) 47%, + hsla(0, 0%, 100%, 0.278) 56.5%, + hsla(0, 0%, 100%, 0.194) 65%, + hsla(0, 0%, 100%, 0.126) 73%, + hsla(0, 0%, 100%, 0.075) 80.2%, + hsla(0, 0%, 100%, 0.042) 86.1%, + hsla(0, 0%, 100%, 0.021) 91%, + hsla(0, 0%, 100%, 0.008) 95.2%, + hsla(0, 0%, 100%, 0.002) 98.2%, + hsla(0, 0%, 100%, 0) 100% + ); +} + +.tabContent > div { + overflow: auto; + height: 100%; } + .tabContent :global(.error) { - color: #d73a49; + color: #d73a49; } .tabContent pre { - margin: 0; + margin: 0; } diff --git a/src/ui/components/JobCard/Details/Details.tsx b/src/ui/components/JobCard/Details/Details.tsx index c2db2a3b..9ff4ccc7 100644 --- a/src/ui/components/JobCard/Details/Details.tsx +++ b/src/ui/components/JobCard/Details/Details.tsx @@ -28,7 +28,9 @@ export const Details = ({ status, job }: DetailsProps) => { ))} -
{getTabContent(job)}
+
+
{getTabContent(job)}
+
) } diff --git a/src/ui/components/JobCard/JobCard.module.css b/src/ui/components/JobCard/JobCard.module.css index baae326a..63786d14 100644 --- a/src/ui/components/JobCard/JobCard.module.css +++ b/src/ui/components/JobCard/JobCard.module.css @@ -17,6 +17,7 @@ flex: 1; display: flex; flex-direction: column; + overflow: hidden; } .title {