Skip to content

Commit d5a67eb

Browse files
committed
minor UI improvements
1 parent 9f188c3 commit d5a67eb

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

frontend/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ tfoot .controls {
678678
.controls.sticky {
679679
position: sticky;
680680
top: -20px;
681+
z-index: 1;
681682
}
682683
.fillwidth {
683684
flex-grow: 1;

frontend/views/policy-object.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ function getContents($group_id, $classMask) {
3434
// get sub groups/categories
3535
$groups = $db->selectAllPolicyDefinitionGroupByParentPolicyDefinitionGroup($group_id);
3636
foreach($groups as $group) {
37-
if($group->display_name == 'WindowsComponents')
38-
$group->display_name = 'windows_components'; // special translation
3937
$group->display_name = translatePolicy($group->display_name);
4038
$group->description = translatePolicy($group->description);
4139
}
@@ -110,8 +108,8 @@ function getPolicyInput($pd) {
110108
foreach(json_decode($pd->value, true) ?? [1=>''] as $key => $value) {
111109
$html .= "<div class='spread'>";
112110
$html .= "<input type='text' class='fullwidth multiple' policy_definition_id='".$pd->id."' value='".htmlspecialchars($value,ENT_QUOTES)."' />";
113-
$html .= "<button class='addValue small ".($counter ? 'hidden' : '')."'><img src='img/add.dyn.svg'></button>";
114-
$html .= "<button class='removeValue small ".($counter ? '' : 'hidden')."'><img src='img/remove.dyn.svg'></button>";
111+
$html .= "<button class='addValue small ".($counter ? 'hidden' : '')."' title='".LANG('add')."'><img src='img/add.dyn.svg'></button>";
112+
$html .= "<button class='removeValue small ".($counter ? '' : 'hidden')."' title='".LANG('remove')."'><img src='img/remove.dyn.svg'></button>";
115113
$html .= "</div>";
116114
$counter ++;
117115
}

0 commit comments

Comments
 (0)