mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Tempo: Trace View - Search bar to absolute position instead of sticky (#61324)
* Trace View: Search bar to absolute position instead of sticky * Fix search bar position to the inside of the trace view panel
This commit is contained in:
parent
e7271ee3f1
commit
d2a5b9b289
@ -29,12 +29,11 @@ export const getStyles = (theme: GrafanaTheme2) => {
|
||||
TracePageSearchBar: css`
|
||||
label: TracePageSearchBar;
|
||||
float: right;
|
||||
position: sticky;
|
||||
top: 8px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: ${theme.zIndex.navbarFixed};
|
||||
background: ${theme.colors.background.primary};
|
||||
margin-top: 8px;
|
||||
margin-bottom: -48px;
|
||||
padding: 8px;
|
||||
margin-right: 2px;
|
||||
|
@ -35,7 +35,7 @@ export function TraceViewContainer(props: Props) {
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Collapse label="Trace View" isOpen>
|
||||
<TracePageSearchBar
|
||||
navigable={true}
|
||||
searchValue={search}
|
||||
@ -46,23 +46,20 @@ export function TraceViewContainer(props: Props) {
|
||||
focusedSpanIdForSearch={focusedSpanIdForSearch}
|
||||
setFocusedSpanIdForSearch={setFocusedSpanIdForSearch}
|
||||
/>
|
||||
|
||||
<Collapse label="Trace View" isOpen>
|
||||
<TraceView
|
||||
exploreId={exploreId}
|
||||
dataFrames={dataFrames}
|
||||
splitOpenFn={splitOpenFn}
|
||||
scrollElement={scrollElement}
|
||||
traceProp={traceProp}
|
||||
spanFindMatches={spanFindMatches}
|
||||
search={search}
|
||||
focusedSpanIdForSearch={focusedSpanIdForSearch}
|
||||
queryResponse={queryResponse}
|
||||
datasource={datasource}
|
||||
topOfViewRef={topOfViewRef}
|
||||
topOfViewRefType={TopOfViewRefType.Explore}
|
||||
/>
|
||||
</Collapse>
|
||||
</>
|
||||
<TraceView
|
||||
exploreId={exploreId}
|
||||
dataFrames={dataFrames}
|
||||
splitOpenFn={splitOpenFn}
|
||||
scrollElement={scrollElement}
|
||||
traceProp={traceProp}
|
||||
spanFindMatches={spanFindMatches}
|
||||
search={search}
|
||||
focusedSpanIdForSearch={focusedSpanIdForSearch}
|
||||
queryResponse={queryResponse}
|
||||
datasource={datasource}
|
||||
topOfViewRef={topOfViewRef}
|
||||
topOfViewRefType={TopOfViewRefType.Explore}
|
||||
/>
|
||||
</Collapse>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user