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
4b03e7c3
Commit
4b03e7c3
authored
Feb 01, 2019
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setting margin on label
parent
d1d5bbf6
Show 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 @
4b03e7c3
...
@@ -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 @
4b03e7c3
...
@@ -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 @
4b03e7c3
...
@@ -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