Skip to content

Commit

Permalink
fixed #1728 put plugin desc in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Leproux committed Sep 21, 2022
1 parent 9d6187e commit fb0f7bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions admin/themes/default/js/plugins_installated.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ function setDisplayClassic() {
$(".pluginContainer").removeClass("line-form").removeClass("compact-form").addClass("classic-form");

$(".pluginDesc").show();
$(".pluginDescCompact").hide();
$(".pluginActions").show();
$(".pluginActionsSmallIcons").hide();

Expand All @@ -15,7 +14,6 @@ function setDisplayCompact() {
$(".pluginContainer").removeClass("line-form").addClass("compact-form").removeClass("classic-form");

$(".pluginDesc").hide();
$(".pluginDescCompact").show();
$(".pluginActions").hide();
$(".pluginActionsSmallIcons").show();

Expand All @@ -28,7 +26,6 @@ function setDisplayLine() {
$(".pluginContainer").addClass("line-form").removeClass("compact-form").removeClass("classic-form");

$(".pluginDesc").show();
$(".pluginDescCompact").hide();
$(".pluginActions").show();
$(".pluginActionsSmallIcons").hide();
// normalTitle();
Expand Down
1 change: 0 additions & 1 deletion admin/themes/default/template/plugins_installed.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ let plugin_filter = searchParams.get('filter');

<div class="PluginOptionsBlock dropdown">
<div class="dropdown-option-content"> {if !empty($author)}{'By %s'|@translate:$author} | {/if}{'Version'|@translate} {$version}</div>
<div style="padding: 5px 10px;">{$plugin.DESC}</div>
<div class="pluginDescCompact">
{$plugin.DESC}
</div>
Expand Down
9 changes: 7 additions & 2 deletions admin/themes/default/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,11 @@ LI.menuLi {
background-color: #00000012;
}

.dropdown-plugin-desc {
padding: 5px 10px;
max-width: 200px;
}

.badge-number {
border-radius: 20px;
background-color: #777;
Expand Down Expand Up @@ -2899,13 +2904,13 @@ legend {text-align:left;}
right: 30px;
top: 0;
z-index: 2;
transform: translateY(calc(50% - 30px));
transform: translateY(0px);
}

.pluginContainer.line-form .pluginBox .dropdown::after {
content: " ";
position: absolute;
bottom: 55%;
top: 20px;
left: calc(100% + 5px);
margin-left: -5px;
border-width: 5px;
Expand Down

0 comments on commit fb0f7bd

Please sign in to comment.