Fix #14438 - "Show Full Queries" icons

Closes: #14438
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2018-09-23 01:02:11 +02:00 committed by Isaac Bennetch
parent 1042f3dd26
commit 13fd268fdd
2 changed files with 10 additions and 2 deletions

View File

@ -178,9 +178,11 @@ class Processes
if (0 === --$sortableColCount) {
$retval .= '<a href="' . $full_text_link . '">';
if ($show_full_sql) {
$retval .= Util::getImage('s_partialtext', __('Truncate Shown Queries'));
$retval .= Util::getImage('s_partialtext',
__('Truncate Shown Queries'), ['class' => 'icon_fulltext']);
} else {
$retval .= Util::getImage('s_fulltext', __('Show Full Queries'));
$retval .= Util::getImage('s_fulltext',
__('Show Full Queries'), ['class' => 'icon_fulltext']);
}
$retval .= '</a>';
}

View File

@ -21,6 +21,10 @@ if (! defined('PHPMYADMIN') && ! defined('TESTSUITE')) {
width: 16px;
height: 16px;
}
.icon_fulltext {
width: 50px;
height: 19px;
}
.ic_asc_order { background-image: url('<?= $theme->getImgPath('asc_order.png'); ?>'); }
.ic_b_bookmark { background-image: url('<?= $theme->getImgPath('b_bookmark.png'); ?>'); }
.ic_b_browse { background-image: url('<?= $theme->getImgPath('b_browse.png'); ?>'); }
@ -184,3 +188,5 @@ if (! defined('PHPMYADMIN') && ! defined('TESTSUITE')) {
.ic_show { background-image: url('<?= $theme->getImgPath('show.png'); ?>'); }
.ic_window-new { background-image: url('<?= $theme->getImgPath('window-new.png'); ?>'); }
.ic_ajax_clock_small { background-image: url('<?= $theme->getImgPath('ajax_clock_small.gif'); ?>'); }
.ic_s_partialtext { background-image: url('<?= $theme->getImgPath('s_partialtext.png'); ?>'); }
.ic_s_fulltext { background-image: url('<?= $theme->getImgPath('s_fulltext.png'); ?>'); }