Skip to content

Commit

Permalink
feat: add css for event list for explain button column
Browse files Browse the repository at this point in the history
  • Loading branch information
arunjaindev committed Nov 5, 2024
1 parent 389847c commit f3a2ffa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 10 additions & 4 deletions src/components/ResourceBrowser/ResourceBrowser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,18 @@

.event-list-row {
display: grid;
grid-template-columns: 80px minmax(200px, auto) 130px 150px 150px repeat(4, 70px);
grid-template-columns: 80px minmax(200px, auto) 130px 200px 150px repeat(3, 70px);
column-gap: 16px;

&:hover {
.explain-ai-button {
visibility: visible;
&__explain {
display: grid;
grid-template-columns: 80px minmax(200px, auto) 130px 150px 150px repeat(4, 70px);
column-gap: 16px;

&:hover {
.explain-ai-button {
visibility: visible;
}
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/components/ResourceBrowser/ResourceList/EventList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const EventList = ({
setWidgetEventDetails,
}: EventListType) => (
<div className="dc__overflow-scroll">
<div className="event-list-row dc__zi-1 dc__min-width-fit-content dc__position-sticky bcn-0 dc__top-0 fw-6 cn-7 fs-13 dc__border-bottom pl-20 pr-8 pt-8 pb-8 dc__uppercase h-36">
<div
className={`event-list-row${ExplainEventButton ? '__explain' : ''} dc__zi-1 dc__min-width-fit-content dc__position-sticky bcn-0 dc__top-0 fw-6 cn-7 fs-13 dc__border-bottom px-20 py-8 dc__uppercase h-36`}
>
{Object.values(EVENT_LIST.headerKeys).map((title) => (
<Tooltip key={title} content={title}>
<span className="dc__ellipsis-right">{title}</span>
Expand All @@ -61,7 +63,7 @@ export const EventList = ({
return (
<div
key={Object.values(eventData).join('-')}
className="event-list-row cn-9 fs-13 dc__border-bottom-n1 pl-20 pr-8 pt-12 pb-12 hover-class"
className={`event-list-row${ExplainEventButton ? '__explain' : ''} cn-9 fs-13 dc__border-bottom-n1 px-20 py-12 hover-class`}
>
<div
className={`app-summary__status-name dc__highlight-text f-${(eventData.type as string)?.toLowerCase()}`}
Expand Down

0 comments on commit f3a2ffa

Please sign in to comment.