Skip to content

Commit

Permalink
fix(wizard): tooltip and ellipsis on long category name
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed May 19, 2022
1 parent 1f02685 commit 77036a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,17 @@ tr[data-itemtype="PluginFormcreatorCondition"] ~ tr[data-itemtype="PluginFormcre
border: none;
padding: 16px;
height: 51px;
span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
width: calc(100% - 20px);
}
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: calc(100% - 20px);
}

li ul {
Expand Down Expand Up @@ -537,7 +548,6 @@ tr[data-itemtype="PluginFormcreatorCondition"] ~ tr[data-itemtype="PluginFormcre

a.next:after {
content: '\276f';
margin-left: 1em;
float: right;
}

Expand Down
3 changes: 2 additions & 1 deletion js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ function buildCategoryList(tree) {
if (tree.id != 0) {
html = '<a href="#" data-parent-category-id="' + tree.parent +'"'
+ ' data-category-id="' + tree.id + '"'
+ ' onclick="plugin_formcreator.updateWizardFormsView(this)">'
+ ' onclick="plugin_formcreator.updateWizardFormsView(this)"'
+ 'title="' + tree.name + '">'
+ tree.name
+ '</a>';
}
Expand Down

0 comments on commit 77036a9

Please sign in to comment.