Improve styles of extension blocks
| @@ -83,12 +83,12 @@ label[for="extensions_autoconnect"] { | ||
| 83 | 83 | |
| 84 | 84 | .extensions_info .extension_block { |
| 85 | 85 | display: flex; |
| 86 | 86 | flex-wrap: wrapnowrap; |
| 87 | 87 | padding: 5px 10px; |
| 88 | 88 | margin-bottom: 5px; |
| 89 | 89 | border: 1px solid var(--SmartThemeBorderColor); |
| 90 | 90 | border-radius: 10px; |
| 91 | 91 | align-items: centerbaseline; |
| 92 | 92 | justify-content: space-between; |
| 93 | 93 | gap: 5px; |
| 94 | 94 | } |
| @@ -101,7 +101,7 @@ label[for="extensions_autoconnect"] { | ||
| 101 | 101 | opacity: 0.8; |
| 102 | 102 | font-size: 0.8em; |
| 103 | 103 | font-weight: normal; |
| 104 | 104 | margin-left: 5px2px; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | .extensions_info .extension_block a { |
| @@ -136,3 +136,13 @@ input.extension_missing[type="checkbox"] { | ||
| 136 | 136 | #extensionsMenu>div.extension_container:empty { |
| 137 | 137 | display: none; |
| 138 | 138 | } |
| 139 | + | |
| 140 | +.extensions_info .extension_text_block { | |
| 141 | + white-space: nowrap; | |
| 142 | + overflow: hidden; | |
| 143 | + text-overflow: ellipsis; | |
| 144 | +} | |
| 145 | + | |
| 146 | +.extensions_info .extension_actions { | |
| 147 | + flex-wrap: nowrap; | |
| 148 | +} | |
| @@ -573,13 +573,13 @@ function generateExtensionHtml(name, manifest, isActive, isDisabled, isExternal, | ||
| 573 | 573 | const type = getExtensionType(name); |
| 574 | 574 | switch (type) { |
| 575 | 575 | case 'global': |
| 576 | 576 | return '<i class="fa-sm fa-fw fa-solid fa-server" data-i18n="[title]ext_type_global" title="This is a global extension, available for all users."></i>'; |
| 577 | 577 | case 'local': |
| 578 | 578 | return '<i class="fa-sm fa-fw fa-solid fa-user" data-i18n="[title]ext_type_local" title="This is a local extension, available only for you."></i>'; |
| 579 | 579 | case 'system': |
| 580 | 580 | return '<i class="fa-sm fa-fw fa-solid fa-cog" data-i18n="[title]ext_type_system" title="This is a built-in extension. It cannot be deleted and updates with the app."></i>'; |
| 581 | 581 | default: |
| 582 | 582 | return '<i class="fa-sm fa-fw fa-solid fa-question" title="Unknown extension type."></i>'; |
| 583 | 583 | } |
| 584 | 584 | } |
| 585 | 585 | |
| @@ -627,7 +627,7 @@ function generateExtensionHtml(name, manifest, isActive, isDisabled, isExternal, | ||
| 627 | 627 | <div class="extension_icon"> |
| 628 | 628 | ${extensionIcon} |
| 629 | 629 | </div> |
| 630 | 630 | <div class="flexGrow extension_text_block"> |
| 631 | 631 | ${originHtml} |
| 632 | 632 | <span class="${isActive ? 'extension_enabled' : isDisabled ? 'extension_disabled' : 'extension_missing'}"> |
| 633 | 633 | <span class="extension_name">${DOMPurify.sanitize(displayName)}</span> |