Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e7621906
Commit
e7621906
authored
Jan 18, 2020
by
Peter Holmberg
Committed by
Torkel Ödegaard
Jan 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inspect: table take full height in drawer (#21580)
parent
7cbf3d8d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
packages/grafana-ui/src/components/Drawer/Drawer.tsx
+1
-0
packages/grafana-ui/src/components/Tabs/TabContent.tsx
+3
-1
public/app/features/dashboard/components/Inspector/PanelInspector.tsx
+6
-5
No files found.
packages/grafana-ui/src/components/Drawer/Drawer.tsx
View file @
e7621906
...
...
@@ -54,6 +54,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
`
,
content
:
css
`
padding:
${
theme
.
spacing
.
md
}
;
height: 100%;
`
,
};
});
...
...
packages/grafana-ui/src/components/Tabs/TabContent.tsx
View file @
e7621906
...
...
@@ -10,7 +10,9 @@ interface Props {
const
getTabContentStyle
=
stylesFactory
((
theme
:
GrafanaTheme
)
=>
{
return
{
tabContent
:
css
`
padding:
${
theme
.
spacing
.
xs
}
0;
padding:
${
theme
.
spacing
.
xs
}
;
height: 90%;
overflow: hidden;
`
,
};
});
...
...
public/app/features/dashboard/components/Inspector/PanelInspector.tsx
View file @
e7621906
...
...
@@ -136,7 +136,7 @@ export class PanelInspector extends PureComponent<Props, State> {
return
<
metaDS
.
components
.
MetadataInspector
datasource=
{
metaDS
}
data=
{
data
}
/>;
}
renderDataTab
(
width
:
number
)
{
renderDataTab
(
width
:
number
,
height
:
number
)
{
const
{
data
,
selected
}
=
this
.
state
;
const
styles
=
getStyles
();
if
(
!
data
||
!
data
.
length
)
{
...
...
@@ -177,7 +177,7 @@ export class PanelInspector extends PureComponent<Props, State> {
</
Forms
.
Button
>
</
div
>
</
div
>
<
Table
width=
{
width
}
height=
{
400
}
data=
{
processed
[
selected
]
}
/>
<
Table
width=
{
width
}
height=
{
height
}
data=
{
processed
[
selected
]
}
/>
</
div
>
);
}
...
...
@@ -211,14 +211,15 @@ export class PanelInspector extends PureComponent<Props, State> {
})
}
</
TabsBar
>
<
TabContent
>
<
AutoSizer
disableHeight
>
{
({
width
})
=>
{
<
AutoSizer
>
{
({
width
,
height
})
=>
{
if
(
width
===
0
)
{
return
null
;
}
return
(
<
div
style=
{
{
width
}
}
>
{
tab
===
InspectTab
.
Data
&&
this
.
renderDataTab
(
width
)
}
{
tab
===
InspectTab
.
Data
&&
this
.
renderDataTab
(
width
,
height
)
}
{
tab
===
InspectTab
.
Meta
&&
this
.
renderMetadataInspector
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment