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
501d974e
Commit
501d974e
authored
Oct 10, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the fixed widths and make it possible to pass it in as a prop instead #13425
parent
77d06a09
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
public/app/core/components/Picker/DescriptionOption.tsx
+2
-2
public/app/core/components/Picker/NoOptionsMessage.tsx
+2
-2
public/app/core/components/Picker/PickerOption.tsx
+2
-2
public/app/core/components/Picker/__snapshots__/PickerOption.test.tsx.snap
+1
-1
No files found.
public/app/core/components/Picker/DescriptionOption.tsx
View file @
501d974e
...
...
@@ -8,10 +8,10 @@ interface ExtendedOptionProps extends OptionProps<any> {
}
export
const
Option
=
(
props
:
ExtendedOptionProps
)
=>
{
const
{
children
,
isSelected
,
data
}
=
props
;
const
{
children
,
isSelected
,
data
,
className
}
=
props
;
return
(
<
components
.
Option
{
...
props
}
>
<
div
className=
{
`description-picker-option__button btn btn-link
width-19
`
}
>
<
div
className=
{
`description-picker-option__button btn btn-link
${className}
`
}
>
{
isSelected
&&
<
i
className=
"fa fa-check pull-right"
aria
-
hidden=
"true"
/>
}
<
div
className=
"gf-form"
>
{
children
}
</
div
>
<
div
className=
"gf-form"
>
...
...
public/app/core/components/Picker/NoOptionsMessage.tsx
View file @
501d974e
...
...
@@ -7,10 +7,10 @@ export interface Props {
}
export
const
PickerOption
=
(
props
:
OptionProps
<
any
>
)
=>
{
const
{
children
}
=
props
;
const
{
children
,
className
}
=
props
;
return
(
<
components
.
Option
{
...
props
}
>
<
div
className=
{
`description-picker-option__button btn btn-link
width-19
`
}
>
{
children
}
</
div
>
<
div
className=
{
`description-picker-option__button btn btn-link
${className}
`
}
>
{
children
}
</
div
>
</
components
.
Option
>
);
};
...
...
public/app/core/components/Picker/PickerOption.tsx
View file @
501d974e
...
...
@@ -8,10 +8,10 @@ interface ExtendedOptionProps extends OptionProps<any> {
}
export
const
PickerOption
=
(
props
:
ExtendedOptionProps
)
=>
{
const
{
children
,
data
}
=
props
;
const
{
children
,
data
,
className
}
=
props
;
return
(
<
components
.
Option
{
...
props
}
>
<
div
className=
{
`description-picker-option__button btn btn-link
width-19
`
}
>
<
div
className=
{
`description-picker-option__button btn btn-link
${className}
`
}
>
{
data
.
avatarUrl
&&
<
img
src=
{
data
.
avatarUrl
}
alt=
{
data
.
label
}
className=
"user-picker-option__avatar"
/>
}
{
children
}
</
div
>
...
...
public/app/core/components/Picker/__snapshots__/PickerOption.test.tsx.snap
View file @
501d974e
...
...
@@ -3,7 +3,7 @@
exports[`PickerOption renders correctly 1`] = `
<div>
<div
className="description-picker-option__button btn btn-link
width-19
"
className="description-picker-option__button btn btn-link"
>
<img
alt="User picker label"
...
...
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