mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[home] fix 'plugin' sidebar's button
This commit is contained in:
BIN
common/loginpage/res/img/toolicons/1.25x/plugin.png
Normal file
BIN
common/loginpage/res/img/toolicons/1.25x/plugin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 358 B |
BIN
common/loginpage/res/img/toolicons/1.5x/plugin.png
Normal file
BIN
common/loginpage/res/img/toolicons/1.5x/plugin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 442 B |
BIN
common/loginpage/res/img/toolicons/1.75x/plugin.png
Normal file
BIN
common/loginpage/res/img/toolicons/1.75x/plugin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 520 B |
3
common/loginpage/res/img/toolicons/1x/plugin.svg
Normal file
3
common/loginpage/res/img/toolicons/1x/plugin.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path d="M5.5 9.5v-3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1Zm0 8v-3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1Zm8-8v-3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1Zm2.5 3.75a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5Z" class="icon-gray-primary"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 405 B |
@ -49,6 +49,7 @@
|
||||
|
||||
var ViewCustomPanel = function(args) {
|
||||
var _lang = utils.Lang;
|
||||
const isSvgIcons = window.devicePixelRatio >= 2 || window.devicePixelRatio === 1;
|
||||
|
||||
let _html = `<div class="action-panel style--free ${args.action}">
|
||||
<div class="flexbox">
|
||||
@ -59,8 +60,21 @@
|
||||
args.tplPage = _html;
|
||||
args.menu = '.main-column.tool-menu';
|
||||
args.field = '.main-column.col-center';
|
||||
args.itemindex = 3;
|
||||
args.itemtext = args.itemtext;
|
||||
// args.itemindex = 3;
|
||||
// args.itemtext = args.itemtext;
|
||||
args.tplItem = `
|
||||
<li class="menu-item">
|
||||
<a action="${args.action}">
|
||||
<div class="icon-box">
|
||||
<svg class="icon" data-iconname="plugin" data-precls="tool-icon">
|
||||
<use href="#plugin"></use>
|
||||
</svg>
|
||||
${!isSvgIcons ? '<i class="icon tool-icon plugin"></i>`' : ''}
|
||||
</div>
|
||||
<span class="text" l10n>${args.itemtext}</span>
|
||||
</a>
|
||||
</li>
|
||||
`;
|
||||
|
||||
baseView.prototype.constructor.call(this, args);
|
||||
};
|
||||
|
||||
@ -440,6 +440,8 @@ utils.fn.decodeHtml = function(str) {
|
||||
}
|
||||
|
||||
utils.fn.getToolMenuItemOrder = function(item) {
|
||||
return { item: $('.menu-item a[action=settings]').parent(), after: false };
|
||||
|
||||
let $item = $(item);
|
||||
|
||||
let _action = $item.find('[action]').attr('action'),
|
||||
|
||||
Reference in New Issue
Block a user