Skip to content

Commit

Permalink
feat: ui updates - traces explorer (#4555)
Browse files Browse the repository at this point in the history
  • Loading branch information
YounixM authored Feb 15, 2024
1 parent 633b551 commit 4e75479
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 45 deletions.
30 changes: 13 additions & 17 deletions frontend/src/container/LogsContextList/LogsContextList.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,30 @@

.show-more-button {
position: absolute;
z-index: 1;
opacity: 1;
z-index: 1;

cursor: pointer;

&.up {
top: 0;
top: -1px;
left: -1px;
}

&.down {
bottom: 0;
bottom: -1px;
left: -1px;
}
}

.virtuoso-list {
&::-webkit-scrollbar {
width: 0.1rem;
height: 0.1rem;
&.disabled {
cursor: not-allowed;
}
}

&.logs-context-list-asc {
.virtuoso-list {
padding-top: 16px;
}
}

&.logs-context-list-desc {
.virtuoso-list {
padding-bottom: 16px;
.virtuoso-list {
&::-webkit-scrollbar {
width: 0.3rem;
height: 0.3rem;
}
}
}
46 changes: 23 additions & 23 deletions frontend/src/container/LogsContextList/ShowButton.styles.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
.show-more-button {
background-color: var(--bg-slate-400);
color: var(--bg-vanilla-100);
display: flex;
padding: 4px 8px;
align-items: center;
gap: 3px;
border: none;
margin: 0;
background-color: var(--bg-slate-400);
color: var(--bg-vanilla-100);
display: flex;
padding: 4px 8px;
align-items: center;
gap: 3px;
border: none;
margin: 0;
}

.show-more-button {
&.disabled {
background-color: var(--bg-slate-200);
color: var(--bg-vanilla-400);
}
&.disabled {
background-color: var(--bg-slate-200);
color: var(--bg-vanilla-400);
}
}

.lightMode {
.show-more-button {
background-color: var(--bg-vanilla-300);
color: var(--bg-slate-400);
}
.show-more-button {
background-color: var(--bg-vanilla-300);
color: var(--bg-slate-400);
}

.show-more-button {
&.disabled {
background-color: var(--bg-vanilla-300);
color: var(--bg-vanilla-400);
}
}
}
.show-more-button {
&.disabled {
background-color: var(--bg-vanilla-300);
color: var(--bg-vanilla-400);
}
}
}
2 changes: 1 addition & 1 deletion frontend/src/container/LogsContextList/ShowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function ShowButton({
onClick={onClick}
icon={getIcons()}
className={cx(
'show-more-button',
'show-more-button periscope-btn',
order === ORDERBY_FILTERS.ASC ? 'up' : 'down',
isDisabled && 'disabled',
)}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/container/TracesExplorer/Controls/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export const Container = styled.div`
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
margin: 4px 0;
`;
8 changes: 7 additions & 1 deletion frontend/src/pages/TracesExplorer/TracesExplorer.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
display: flex;
flex-direction: row-reverse;
align-items: center;
margin: 1rem 0 0.5rem 0;
margin: 8px 16px;
gap: 8px;
}

.traces-explorer-views {
.ant-tabs-tabpane {
padding: 0 8px;
}
}
2 changes: 1 addition & 1 deletion frontend/src/pages/TracesExplorer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function TracesExplorer(): JSX.Element {
<QuerySection />
</ExplorerCard>

<Container>
<Container className="traces-explorer-views">
<ActionsWrapper>
<ExportPanel
query={exportDefaultQuery}
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/pages/TracesModulePage/TracesModulePage.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
margin-bottom: 0px;

&::before {
border-bottom: none !important;
border-bottom: 1px solid var(--bg-slate-400) !important;
}
}

Expand All @@ -15,3 +15,13 @@
gap: 8px;
}
}

.lightMode {
.traces-module-container {
.ant-tabs-nav {
&::before {
border-bottom: 1px solid var(--bg-vanilla-300) !important;
}
}
}
}
2 changes: 1 addition & 1 deletion frontend/src/pages/TracesModulePage/TracesModulePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function TracesModulePage(): JSX.Element {

return (
<div className="traces-module-container">
<RouteTab routes={routes} activeKey={pathname} history={history} />;
<RouteTab routes={routes} activeKey={pathname} history={history} />
</div>
);
}
Expand Down

0 comments on commit 4e75479

Please sign in to comment.