Fix ui issue

This commit is contained in:
xxrl 2022-04-24 17:15:20 +08:00
parent cfa0c1039c
commit 81cd079faa
2 changed files with 10 additions and 10 deletions

View File

@ -352,11 +352,11 @@ div.trust-me > div:nth-child(3) {
font-weight: bold;
}
div#myid {
#id-menu {
position: relative;
}
div#myid svg#menu {
#id-menu svg#menu {
position: absolute;
right: -1em;
}

View File

@ -140,18 +140,18 @@ pub fn make_menubar(host: Rc<Host>) {
menubar.addItem_(app_menu_item);
let app_menu = NSMenu::new(nil).autorelease();
let about_item = make_menu_item("About", "a", SHOW_ABOUT_TAG);
app_menu.addItem_(about_item);
let separator = NSMenuItem::separatorItem(nil).autorelease();
app_menu.addItem_(separator);
let settings_item = make_menu_item("Settings", "s", SHOW_SETTINGS_TAG);
app_menu.addItem_(settings_item);
if std::env::args().len() > 1 {
let new_item = make_menu_item("New Window", "n", RUN_ME_TAG);
app_menu.addItem_(new_item);
} else {
// When app launched without argument, is the main panel.
let about_item = make_menu_item("About", "a", SHOW_ABOUT_TAG);
app_menu.addItem_(about_item);
let separator = NSMenuItem::separatorItem(nil).autorelease();
app_menu.addItem_(separator);
let settings_item = make_menu_item("Settings", "s", SHOW_SETTINGS_TAG);
app_menu.addItem_(settings_item);
}
let separator = NSMenuItem::separatorItem(nil).autorelease();
app_menu.addItem_(separator);
let quit_item = make_menu_item(