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
9cc4e052
Unverified
Commit
9cc4e052
authored
Dec 07, 2018
by
Torkel Ödegaard
Committed by
GitHub
Dec 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14366 from grafana/14341-wide-picker-no-button
Pickers with min-width instead of width
parents
ef77748a
02b14d33
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
public/app/core/components/PermissionList/AddPermission.tsx
+1
-1
public/app/core/components/Picker/UserPicker.tsx
+1
-1
public/app/features/teams/TeamMembers.tsx
+1
-1
public/app/features/teams/__snapshots__/TeamMembers.test.tsx.snap
+3
-3
public/sass/utils/_widths.scss
+6
-0
No files found.
public/app/core/components/PermissionList/AddPermission.tsx
View file @
9cc4e052
...
@@ -84,7 +84,7 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
...
@@ -84,7 +84,7 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
render
()
{
render
()
{
const
{
onCancel
}
=
this
.
props
;
const
{
onCancel
}
=
this
.
props
;
const
newItem
=
this
.
state
;
const
newItem
=
this
.
state
;
const
pickerClassName
=
'width-20'
;
const
pickerClassName
=
'
min-
width-20'
;
const
isValid
=
this
.
isValid
();
const
isValid
=
this
.
isValid
();
return
(
return
(
<
div
className=
"gf-form-inline cta-form"
>
<
div
className=
"gf-form-inline cta-form"
>
...
...
public/app/core/components/Picker/UserPicker.tsx
View file @
9cc4e052
...
@@ -40,7 +40,7 @@ export class UserPicker extends Component<Props, State> {
...
@@ -40,7 +40,7 @@ export class UserPicker extends Component<Props, State> {
.
then
(
result
=>
{
.
then
(
result
=>
{
return
result
.
map
(
user
=>
({
return
result
.
map
(
user
=>
({
id
:
user
.
userId
,
id
:
user
.
userId
,
label
:
`
${
user
.
login
}
-
${
user
.
email
}
`
,
label
:
user
.
login
===
user
.
email
?
user
.
login
:
`
${
user
.
login
}
-
${
user
.
email
}
`
,
avatarUrl
:
user
.
avatarUrl
,
avatarUrl
:
user
.
avatarUrl
,
login
:
user
.
login
,
login
:
user
.
login
,
}));
}));
...
...
public/app/features/teams/TeamMembers.tsx
View file @
9cc4e052
...
@@ -115,7 +115,7 @@ export class TeamMembers extends PureComponent<Props, State> {
...
@@ -115,7 +115,7 @@ export class TeamMembers extends PureComponent<Props, State> {
</
button
>
</
button
>
<
h5
>
Add Team Member
</
h5
>
<
h5
>
Add Team Member
</
h5
>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form-inline"
>
<
UserPicker
onSelected=
{
this
.
onUserSelected
}
className=
"width-30"
/>
<
UserPicker
onSelected=
{
this
.
onUserSelected
}
className=
"
min-
width-30"
/>
{
this
.
state
.
newTeamMember
&&
(
{
this
.
state
.
newTeamMember
&&
(
<
button
className=
"btn btn-success gf-form-btn"
type=
"submit"
onClick=
{
this
.
onAddUserToTeam
}
>
<
button
className=
"btn btn-success gf-form-btn"
type=
"submit"
onClick=
{
this
.
onAddUserToTeam
}
>
Add to team
Add to team
...
...
public/app/features/teams/__snapshots__/TeamMembers.test.tsx.snap
View file @
9cc4e052
...
@@ -58,7 +58,7 @@ exports[`Render should render component 1`] = `
...
@@ -58,7 +58,7 @@ exports[`Render should render component 1`] = `
className="gf-form-inline"
className="gf-form-inline"
>
>
<UserPicker
<UserPicker
className="width-30"
className="
min-
width-30"
onSelected={[Function]}
onSelected={[Function]}
/>
/>
</div>
</div>
...
@@ -152,7 +152,7 @@ exports[`Render should render team members 1`] = `
...
@@ -152,7 +152,7 @@ exports[`Render should render team members 1`] = `
className="gf-form-inline"
className="gf-form-inline"
>
>
<UserPicker
<UserPicker
className="width-30"
className="
min-
width-30"
onSelected={[Function]}
onSelected={[Function]}
/>
/>
</div>
</div>
...
@@ -372,7 +372,7 @@ exports[`Render should render team members when sync enabled 1`] = `
...
@@ -372,7 +372,7 @@ exports[`Render should render team members when sync enabled 1`] = `
className="gf-form-inline"
className="gf-form-inline"
>
>
<UserPicker
<UserPicker
className="width-30"
className="
min-
width-30"
onSelected={[Function]}
onSelected={[Function]}
/>
/>
</div>
</div>
...
...
public/sass/utils/_widths.scss
View file @
9cc4e052
...
@@ -20,6 +20,12 @@
...
@@ -20,6 +20,12 @@
}
}
@for
$i
from
1
through
30
{
@for
$i
from
1
through
30
{
.min-width-
#{
$i
}
{
min-width
:
(
$spacer
*
$i
)
-
$gf-form-margin
!
important
;
}
}
@for
$i
from
1
through
30
{
.offset-width-
#{
$i
}
{
.offset-width-
#{
$i
}
{
margin-left
:
(
$spacer
*
$i
)
!
important
;
margin-left
:
(
$spacer
*
$i
)
!
important
;
}
}
...
...
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