From 7ef1f9315e914f4c1ff13fcf9f18dee1d4eaed09 Mon Sep 17 00:00:00 2001 From: stax76 Date: Mon, 20 Jun 2022 19:24:24 +0200 Subject: [PATCH] Width of command palette slightly increased --- docs/Changelog.md | 2 ++ src/Misc/Misc.cs | 4 ++-- src/WinForms/MainForm.cs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Changelog.md b/docs/Changelog.md index f56b5bd..c8913ed 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -11,6 +11,8 @@ - Fix script compatibility with mordenx and mpv-osc-tethys. - Fix borderless window not resizable with mouse. - Fix start-size=session not working. +- Width of command palette slightly increased. +- libmpv zhongfly 2022-06-19 input.conf changes: diff --git a/src/Misc/Misc.cs b/src/Misc/Misc.cs index 32ef126..da0c934 100644 --- a/src/Misc/Misc.cs +++ b/src/Misc/Misc.cs @@ -151,8 +151,8 @@ namespace mpvnet get { if (string.IsNullOrEmpty(Path)) { - if (Command.Length > 50) - return Command.Substring(0, 50) + "..."; + if (Command.Length > 47) + return Command.Substring(0, 47) + "..."; return Command; } else diff --git a/src/WinForms/MainForm.cs b/src/WinForms/MainForm.cs index 9dc8008..129257c 100644 --- a/src/WinForms/MainForm.cs +++ b/src/WinForms/MainForm.cs @@ -1333,7 +1333,7 @@ namespace mpvnet if (CommandPaletteHost == null) return; - CommandPaletteHost.Width = FontHeight * 25; + CommandPaletteHost.Width = FontHeight * 27; if (CommandPaletteHost.Width > ClientSize.Width) CommandPaletteHost.Width = ClientSize.Width;