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
093477c0
Unverified
Commit
093477c0
authored
Aug 27, 2020
by
Torkel Ödegaard
Committed by
GitHub
Aug 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashlist: Tweaked design of folder addition (#27241)
parent
5e276542
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
public/app/plugins/panel/dashlist/module.html
+4
-7
public/sass/components/_panel_dashlist.scss
+13
-9
No files found.
public/app/plugins/panel/dashlist/module.html
View file @
093477c0
...
@@ -6,13 +6,10 @@
...
@@ -6,13 +6,10 @@
</h6>
</h6>
<div
class=
"dashlist-item"
ng-repeat=
"dash in group.list"
>
<div
class=
"dashlist-item"
ng-repeat=
"dash in group.list"
>
<a
class=
"dashlist-link dashlist-link-{{dash.type}}"
href=
"{{dash.url}}"
>
<a
class=
"dashlist-link dashlist-link-{{dash.type}}"
href=
"{{dash.url}}"
>
<span
class=
"dashlist-title"
>
<div
class=
"dashlist-link-body"
>
{{dash.title}}
<div
class=
"dashlist-title"
>
{{dash.title}}
</div>
</span>
<div
ng-if=
"dash.folderTitle"
class=
"dashlist-folder"
>
{{dash.folderTitle}}
</div>
<span
ng-if=
"dash.folderTitle"
class=
"dashlist-folder"
>
</div>
<icon
name=
"'folder'"
type=
"mono"
size=
"'xs'"
></icon>
{{dash.folderTitle}}
</span>
<span
class=
"dashlist-star"
ng-click=
"ctrl.starDashboard(dash, $event)"
>
<span
class=
"dashlist-star"
ng-click=
"ctrl.starDashboard(dash, $event)"
>
<icon
name=
"dash.isStarred ? 'favorite':'star'"
type=
"dash.isStarred ? 'mono':'default'"
></icon>
<icon
name=
"dash.isStarred ? 'favorite':'star'"
type=
"dash.isStarred ? 'mono':'default'"
></icon>
</span>
</span>
...
...
public/sass/components/_panel_dashlist.scss
View file @
093477c0
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
padding-top
:
3px
;
padding-top
:
3px
;
}
}
.dashlist
{
.dashlist-link
{
&
-link
{
@include
list-item
();
@include
list-item
();
display
:
flex
;
.fa
{
.fa
{
padding-top
:
3px
;
padding-top
:
3px
;
...
@@ -19,15 +19,19 @@
...
@@ -19,15 +19,19 @@
.fa-star
{
.fa-star
{
color
:
$orange
;
color
:
$orange
;
}
}
}
}
&
-star
{
.dashlist-star
{
float
:
right
;
display
:
flex
;
}
align-items
:
center
;
color
:
$text-color-weak
;
}
&
-folder
{
.dashlist
-folder
{
color
:
$text-color-weak
;
color
:
$text-color-weak
;
margin-left
:
$space-sm
;
font-size
:
$font-size-xs
;
font-size
:
$font-size-xs
;
}
}
.dashlist-link-body
{
flex-grow
:
1
;
}
}
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