Fix display of side menus on actions in vertical toolbars

Fix potential issue with clicking some links in custom UIs
This commit is contained in:
JannisX11 2022-08-31 22:54:46 +02:00
parent ef4110aa75
commit 99d3eba4f6
3 changed files with 11 additions and 2 deletions

View File

@ -512,6 +512,15 @@
.tool.side_menu_tool i.icon.action_more_options:hover {
color: inherit;
}
.toolbar.vertical .tool.side_menu_tool {
height: 54px;
}
.toolbar.vertical .tool.side_menu_tool > .action_more_options {
max-width: 48px;
text-align: center;
width: 100%;
margin-top: 0px;
}
/*(Context-)Menu*/
.contextMenu {

View File

@ -35,7 +35,7 @@ function initializeDesktopApp() {
//Setup
$(document.body).on('click', 'a[href]', (event) => {
event.preventDefault();
shell.openExternal(event.target.href);
shell.openExternal(event.currentTarget.href);
return true;
});

View File

@ -15,7 +15,7 @@ function initializeWebApp() {
$(document.body).on('click', 'a[href]', (event) => {
event.preventDefault();
window.open(event.target.href, '_blank');
window.open(event.currentTarget.href, '_blank');
});
if (location.host == 'blockbench-dev.netlify.app') {
let button = $(`<a href="https://www.netlify.com/" style="padding: 3px 8px; color: white; cursor: pointer; text-decoration: none;" target="_blank" rel="noopener">