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
35693d3b
Unverified
Commit
35693d3b
authored
Feb 01, 2019
by
Torkel Ödegaard
Committed by
GitHub
Feb 01, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15199 from grafana/fix/label-margin-datasource-list
setting margin on label in datasourcelist
parents
16f30664
4b03e7c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
public/app/features/datasources/DataSourcesListItem.tsx
+2
-2
public/app/features/datasources/__snapshots__/DataSourcesListItem.test.tsx.snap
+1
-0
public/sass/components/_cards.scss
+4
-0
No files found.
public/app/features/datasources/DataSourcesListItem.tsx
View file @
35693d3b
...
@@ -16,12 +16,12 @@ export class DataSourcesListItem extends PureComponent<Props> {
...
@@ -16,12 +16,12 @@ export class DataSourcesListItem extends PureComponent<Props> {
</
div
>
</
div
>
<
div
className=
"card-item-body"
>
<
div
className=
"card-item-body"
>
<
figure
className=
"card-item-figure"
>
<
figure
className=
"card-item-figure"
>
<
img
src=
{
dataSource
.
typeLogoUrl
}
/>
<
img
src=
{
dataSource
.
typeLogoUrl
}
alt=
{
dataSource
.
name
}
/>
</
figure
>
</
figure
>
<
div
className=
"card-item-details"
>
<
div
className=
"card-item-details"
>
<
div
className=
"card-item-name"
>
<
div
className=
"card-item-name"
>
{
dataSource
.
name
}
{
dataSource
.
name
}
{
dataSource
.
isDefault
&&
<
span
className=
"btn btn-secondary btn-mini"
>
default
</
span
>
}
{
dataSource
.
isDefault
&&
<
span
className=
"btn btn-secondary btn-mini
card-item-label
"
>
default
</
span
>
}
</
div
>
</
div
>
<
div
className=
"card-item-sub-name"
>
{
dataSource
.
url
}
</
div
>
<
div
className=
"card-item-sub-name"
>
{
dataSource
.
url
}
</
div
>
</
div
>
</
div
>
...
...
public/app/features/datasources/__snapshots__/DataSourcesListItem.test.tsx.snap
View file @
35693d3b
...
@@ -24,6 +24,7 @@ exports[`Render should render component 1`] = `
...
@@ -24,6 +24,7 @@ exports[`Render should render component 1`] = `
className="card-item-figure"
className="card-item-figure"
>
>
<img
<img
alt="gdev-cloudwatch"
src="public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png"
src="public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png"
/>
/>
</figure>
</figure>
...
...
public/sass/components/_cards.scss
View file @
35693d3b
...
@@ -109,6 +109,10 @@
...
@@ -109,6 +109,10 @@
width
:
100%
;
width
:
100%
;
}
}
.card-item-label
{
margin-left
:
8px
;
}
.card-item-sub-name
{
.card-item-sub-name
{
color
:
$text-color-weak
;
color
:
$text-color-weak
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
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