6969 } ) ( )
7070
7171export class TerminalOptionsModal
72- extends EditDataModal < Settings . Profile . TerminalOptions > {
72+ extends EditDataModal < Settings . Profile . TerminalOptions > {
7373 public constructor (
7474 context : TerminalPlugin ,
7575 data : Settings . Profile . TerminalOptions ,
@@ -79,10 +79,21 @@ export class TerminalOptionsModal
7979 super ( context , data , Settings . Profile . fixTerminalOptions , {
8080 ...options ,
8181 elements : [ "data" ] ,
82- title : ( ) => i18n . t ( "components.terminal-options.title" ) ,
82+ title : ( ) => i18n . t ( "components.terminal-options.title" ) ,
8383 } )
8484 }
8585
86+ public override onOpen ( ) : void {
87+ super . onOpen ( )
88+ // Ensure modal and content expand wide regardless of theme defaults
89+ this . modalEl . style . width = "80vw"
90+ this . modalEl . style . maxWidth = "900px"
91+ this . modalEl . style . minWidth = "600px"
92+ this . contentEl . style . width = "80vw"
93+ this . contentEl . style . maxWidth = "900px"
94+ this . contentEl . style . minWidth = "600px"
95+ }
96+
8697 protected override draw (
8798 ui : UpdatableUI ,
8899 element : HTMLElement ,
@@ -348,6 +359,13 @@ export class ProfileModal extends Modal {
348359
349360 public override onOpen ( ) : void {
350361 super . onOpen ( )
362+ // Ensure modal and content expand wide regardless of theme defaults
363+ this . modalEl . style . width = "80vw"
364+ this . modalEl . style . maxWidth = "900px"
365+ this . modalEl . style . minWidth = "600px"
366+ this . contentEl . style . width = "80vw"
367+ this . contentEl . style . maxWidth = "900px"
368+ this . contentEl . style . minWidth = "600px"
351369 const { context, ui, data, titleEl, modalUI } = this ,
352370 { element : listEl , remover : listElRemover } = useSettings ( this . contentEl ) ,
353371 profile = data ,
0 commit comments