mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
setting margin on label
This commit is contained in:
parent
d1d5bbf697
commit
4b03e7c31f
@ -16,12 +16,12 @@ export class DataSourcesListItem extends PureComponent<Props> {
|
||||
</div>
|
||||
<div className="card-item-body">
|
||||
<figure className="card-item-figure">
|
||||
<img src={dataSource.typeLogoUrl} />
|
||||
<img src={dataSource.typeLogoUrl} alt={dataSource.name} />
|
||||
</figure>
|
||||
<div className="card-item-details">
|
||||
<div className="card-item-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 className="card-item-sub-name">{dataSource.url}</div>
|
||||
</div>
|
||||
|
@ -24,6 +24,7 @@ exports[`Render should render component 1`] = `
|
||||
className="card-item-figure"
|
||||
>
|
||||
<img
|
||||
alt="gdev-cloudwatch"
|
||||
src="public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png"
|
||||
/>
|
||||
</figure>
|
||||
|
@ -109,6 +109,10 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-item-label {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.card-item-sub-name {
|
||||
color: $text-color-weak;
|
||||
overflow: hidden;
|
||||
|
Loading…
Reference in New Issue
Block a user