File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -480,9 +480,10 @@ function WindowButtons() {
480480 </ div >
481481 </ span >
482482 ) : (
483- < >
483+ < span className = "flex h-full flex-row sm:gap-1" >
484484 { /* 钉住 */ }
485485 < Button
486+ className = "size-4 sm:size-9"
486487 variant = "ghost"
487488 size = "icon"
488489 onClick = { async ( e ) => {
@@ -493,24 +494,44 @@ function WindowButtons() {
493494 { isWindowAlwaysOnTop ? < Pin strokeWidth = { 3 } /> : < PinOff strokeWidth = { 3 } className = "opacity-50" /> }
494495 </ Button >
495496 { /* 最小化 */ }
496- < Button variant = "ghost" size = "icon" onClick = { ( ) => getCurrentWindow ( ) . minimize ( ) } >
497+ < Button
498+ className = "size-4 sm:size-9"
499+ variant = "ghost"
500+ size = "icon"
501+ onClick = { ( ) => getCurrentWindow ( ) . minimize ( ) }
502+ >
497503 < Minus strokeWidth = { 3 } />
498504 </ Button >
499505 { /* 最大化/还原 */ }
500506 { maximized ? (
501- < Button variant = "ghost" size = "icon" className = "text-xs" onClick = { ( ) => getCurrentWindow ( ) . unmaximize ( ) } >
507+ < Button
508+ className = "size-4 text-xs sm:size-9"
509+ variant = "ghost"
510+ size = "icon"
511+ onClick = { ( ) => getCurrentWindow ( ) . unmaximize ( ) }
512+ >
502513 < Copy className = "size-3" strokeWidth = { 3 } />
503514 </ Button >
504515 ) : (
505- < Button variant = "ghost" size = "icon" onClick = { ( ) => getCurrentWindow ( ) . maximize ( ) } >
516+ < Button
517+ className = "size-4 text-xs sm:size-9"
518+ variant = "ghost"
519+ size = "icon"
520+ onClick = { ( ) => getCurrentWindow ( ) . maximize ( ) }
521+ >
506522 < Square className = "size-3" strokeWidth = { 4 } />
507523 </ Button >
508524 ) }
509525 { /* 关闭 */ }
510- < Button variant = "ghost" size = "icon" onClick = { ( ) => getCurrentWindow ( ) . close ( ) } >
526+ < Button
527+ className = "size-4 text-xs sm:size-9"
528+ variant = "ghost"
529+ size = "icon"
530+ onClick = { ( ) => getCurrentWindow ( ) . close ( ) }
531+ >
511532 < X strokeWidth = { 3 } />
512533 </ Button >
513- </ >
534+ </ span >
514535 ) }
515536 </ div >
516537 ) ;
You can’t perform that action at this time.
0 commit comments