no extra white space for image-only buttons
This commit is contained in:
parent
dfec83853e
commit
5c58d2c140
|
@ -2683,7 +2683,10 @@ class htmlLink extends htmlElement {
|
||||||
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
|
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
|
||||||
$image = '';
|
$image = '';
|
||||||
if ($this->image != null) {
|
if ($this->image != null) {
|
||||||
$image = '<img class="align-middle" src="' . $this->image . '" alt="' . $this->text . '"> ';
|
$image = '<img class="align-middle" src="' . $this->image . '" alt="' . $this->text . '">';
|
||||||
|
if (!empty($this->text)) {
|
||||||
|
$image .= ' ';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$title = '';
|
$title = '';
|
||||||
if ($this->title != null) {
|
if ($this->title != null) {
|
||||||
|
|
Loading…
Reference in New Issue