Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorReinis Detlavs <reinis.detlavs@zabbix.com>2022-02-18 12:16:19 +0300
committerReinis Detlavs <reinis.detlavs@zabbix.com>2022-02-18 12:18:28 +0300
commit6452e39d0f2355f048f8b1189d4187170196bd29 (patch)
treecfe49f7c91a4aa338c0e6c5cbdc11139f6d70b6c /ui
parent4d96612a3440e46266eefede3625f9a19f535a11 (diff)
..F....... [ZBX-19178] fixed trigger wizard user interface breaking because of long expressions
Merge in ZBX/zabbix from feature/ZBX-19178-5.0 to release/5.0 * commit '54a11fb88f4f17dd358d82983bcd91f9606e835f': ..F....... [ZBX-19178] fixed trigger wizard user interface breaking because of long expressions (cherry picked from commit 535587bd9a2f74302a3e979705ac650d5ae707ed)
Diffstat (limited to 'ui')
-rw-r--r--ui/include/views/js/configuration.item.list.js.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/include/views/js/configuration.item.list.js.php b/ui/include/views/js/configuration.item.list.js.php
index 4cedaba95f6..823540ed3bd 100644
--- a/ui/include/views/js/configuration.item.list.js.php
+++ b/ui/include/views/js/configuration.item.list.js.php
@@ -56,7 +56,10 @@
->addStyle('top: 0px;'),
(new CSpan())->addClass('ui-icon ui-icon-arrowthick-2-n-s move '.ZBX_STYLE_TD_DRAG_ICON)
]))->addClass(ZBX_STYLE_TD_DRAG_ICON),
- (new CDiv('#{expression}'))->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH),
+ (new CDiv('#{expression}'))
+ ->addStyle('max-width:'.ZBX_TEXTAREA_STANDARD_WIDTH.'px;')
+ ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS)
+ ->setHint('#{expression}'),
new CDiv('#{type_label}'),
(new CCol([
(new CVar('expressions[][value]', '#{expression}')),
@@ -71,7 +74,10 @@
<script type="text/x-jquery-tmpl" id="tmpl_expressions_part_list_row">
<?=
(new CRow([
- (new CDiv('#{keyword}'))->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH),
+ (new CDiv('#{keyword}'))
+ ->addStyle('max-width:'.ZBX_TEXTAREA_STANDARD_WIDTH.'px;')
+ ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS)
+ ->setHint('#{keyword}'),
new CDiv('#{type_label}'),
(new CCol([
(new CVar('keys[][value]', '#{keyword}')),