File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ function ScriptList() {
167167 key : "name" ,
168168 title : t ( "name" ) ,
169169 dataIndex : "name" ,
170+ width : 240 ,
170171 sorter : ( a , b ) => a . name . localeCompare ( b . name ) ,
171172 filterIcon : < IconSearch /> ,
172173 filterDropdown : ( { filterKeys, setFilterKeys, confirm } : any ) => {
@@ -208,7 +209,6 @@ function ScriptList() {
208209 setTimeout ( ( ) => inputRef . current ! . focus ( ) , 150 ) ;
209210 }
210211 } ,
211- className : "max-w-[240px]" ,
212212 render : ( col , item : ListType ) => {
213213 return (
214214 < Tooltip content = { col } position = "tl" >
@@ -804,8 +804,9 @@ function ScriptList() {
804804 // 将选中的脚本依次置顶(从后往前,保持选中脚本之间的相对顺序)
805805 [ ...select ] . reverse ( ) . forEach ( ( script ) => {
806806 // 找到脚本当前的位置
807- const scriptIndex = currentScripts . findIndex ( s => s . uuid === script . uuid ) ;
808- if ( scriptIndex > 0 ) { // 如果不是已经在最顶部
807+ const scriptIndex = currentScripts . findIndex ( ( s ) => s . uuid === script . uuid ) ;
808+ if ( scriptIndex > 0 ) {
809+ // 如果不是已经在最顶部
809810 // 将脚本置顶(移动到第一个位置)
810811 dispatch ( sortScript ( { active : script . uuid , over : currentScripts [ 0 ] . uuid } ) ) ;
811812 }
You can’t perform that action at this time.
0 commit comments