mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
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:
parent
ef4110aa75
commit
99d3eba4f6
@ -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 {
|
||||
|
@ -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;
|
||||
});
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user