Constrain context menu to the width of the widest item

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2022-05-26 09:59:25 +02:00
co-authored by Nathan Sobo
parent f403d87eff
commit 3b2f1644fb
8 changed files with 200 additions and 93 deletions
+1 -1
View File
@@ -19,6 +19,7 @@ pub struct Theme {
#[serde(default)]
pub name: String,
pub workspace: Workspace,
pub context_menu: ContextMenu,
pub chat_panel: ChatPanel,
pub contacts_panel: ContactsPanel,
pub contact_finder: ContactFinder,
@@ -226,7 +227,6 @@ pub struct ProjectPanel {
pub ignored_entry_fade: f32,
pub filename_editor: FieldEditor,
pub indent_width: f32,
pub context_menu: ContextMenu,
}
#[derive(Clone, Debug, Deserialize, Default)]