mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-01 09:59:19 +08:00
Fix ui issue
This commit is contained in:
parent
cfa0c1039c
commit
81cd079faa
@ -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;
|
||||
}
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user