Skip to content

Commit

Permalink
Fix underline size
Browse files Browse the repository at this point in the history
Missing font size unit
  • Loading branch information
Dalvany committed Jul 6, 2021
1 parent 7acb05e commit d24b4d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ grafana:
environment:
- TERM=linux
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=dalvany-image-panel
#- GF_INSTALL_PLUGINS=dalvany-image-panel
- GF_INSTALL_PLUGINS=marcusolsson-static-datasource
6 changes: 4 additions & 2 deletions src/DynamicImagePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ export class Image extends PureComponent<ImageProps> {
}
// End handles overlay

let underline_size_px = underline_size + 'px';

if (tooltip === null || tooltip === '') {
return (
<div className={'div-container'} style={{ width: w, overflow: 'hidden' }}>
Expand Down Expand Up @@ -173,7 +175,7 @@ export class Image extends PureComponent<ImageProps> {
<div
style={{
textOverflow: 'ellipsis',
fontSize: underline_size,
fontSize: underline_size_px,
whiteSpace: 'nowrap',
overflow: 'hidden',
}}
Expand Down Expand Up @@ -213,7 +215,7 @@ export class Image extends PureComponent<ImageProps> {
<div
style={{
textOverflow: 'ellipsis',
fontSize: underline_size,
fontSize: underline_size_px,
whiteSpace: 'nowrap',
overflow: 'hidden',
}}
Expand Down

0 comments on commit d24b4d2

Please sign in to comment.