@@ -846,40 +846,82 @@ export const ModelConfigSection = forwardRef<
846846 justifyContent : "flex-start" ,
847847 paddingRight : 12 ,
848848 marginLeft : "4px" ,
849- height : LAYOUT_CONFIG . BUTTON_AREA_HEIGHT ,
849+ minHeight : LAYOUT_CONFIG . BUTTON_AREA_HEIGHT ,
850850 } }
851851 >
852- < Space size = { 10 } >
853- < Button type = "primary" size = "middle" onClick = { handleSyncModels } >
854- < SyncOutlined /> { " " }
855- { t ( "modelConfig.button.syncModelEngine" ) }
856- </ Button >
857- < Button
858- type = "primary"
859- size = "middle"
860- icon = { < PlusOutlined /> }
861- onClick = { ( ) => setIsAddModalOpen ( true ) }
862- >
863- { t ( "modelConfig.button.addCustomModel" ) }
864- </ Button >
865- < Button
866- type = "primary"
867- size = "middle"
868- icon = { < EditOutlined /> }
869- onClick = { ( ) => setIsDeleteModalOpen ( true ) }
870- >
871- { t ( "modelConfig.button.editCustomModel" ) }
872- </ Button >
873- < Button
874- type = "primary"
875- size = "middle"
876- icon = { < SafetyCertificateOutlined /> }
877- onClick = { verifyModels }
878- loading = { isVerifying }
879- >
880- { t ( "modelConfig.button.checkConnectivity" ) }
881- </ Button >
882- </ Space >
852+ < Row gutter = { [ 8 , 8 ] } style = { { width : "100%" } } >
853+ < Col xs = { 24 } sm = { 12 } md = { 6 } lg = { 6 } xl = { 6 } >
854+ < Button
855+ type = "primary"
856+ size = "middle"
857+ onClick = { handleSyncModels }
858+ style = { { width : "100%" } }
859+ block
860+ >
861+ < SyncOutlined />
862+ < span style = { { marginLeft : 4 } } >
863+ < span className = "hidden xl:inline button-text-full" >
864+ { t ( "modelConfig.button.syncModelEngine" ) }
865+ </ span >
866+ < span className = "xl:hidden button-text-short" >
867+ { t ( "modelConfig.button.sync" ) }
868+ </ span >
869+ </ span >
870+ </ Button >
871+ </ Col >
872+ < Col xs = { 24 } sm = { 12 } md = { 6 } lg = { 6 } xl = { 6 } >
873+ < Button
874+ type = "primary"
875+ size = "middle"
876+ icon = { < PlusOutlined /> }
877+ onClick = { ( ) => setIsAddModalOpen ( true ) }
878+ style = { { width : "100%" } }
879+ block
880+ >
881+ < span className = "hidden xl:inline button-text-full" >
882+ { t ( "modelConfig.button.addCustomModel" ) }
883+ </ span >
884+ < span className = "xl:hidden button-text-short" >
885+ { t ( "modelConfig.button.add" ) }
886+ </ span >
887+ </ Button >
888+ </ Col >
889+ < Col xs = { 24 } sm = { 12 } md = { 6 } lg = { 6 } xl = { 6 } >
890+ < Button
891+ type = "primary"
892+ size = "middle"
893+ icon = { < EditOutlined /> }
894+ onClick = { ( ) => setIsDeleteModalOpen ( true ) }
895+ style = { { width : "100%" } }
896+ block
897+ >
898+ < span className = "hidden xl:inline button-text-full" >
899+ { t ( "modelConfig.button.editCustomModel" ) }
900+ </ span >
901+ < span className = "xl:hidden button-text-short" >
902+ { t ( "modelConfig.button.edit" ) }
903+ </ span >
904+ </ Button >
905+ </ Col >
906+ < Col xs = { 24 } sm = { 12 } md = { 6 } lg = { 6 } xl = { 6 } >
907+ < Button
908+ type = "primary"
909+ size = "middle"
910+ icon = { < SafetyCertificateOutlined /> }
911+ onClick = { verifyModels }
912+ loading = { isVerifying }
913+ style = { { width : "100%" } }
914+ block
915+ >
916+ < span className = "hidden xl:inline button-text-full" >
917+ { t ( "modelConfig.button.checkConnectivity" ) }
918+ </ span >
919+ < span className = "xl:hidden button-text-short" >
920+ { t ( "modelConfig.button.check" ) }
921+ </ span >
922+ </ Button >
923+ </ Col >
924+ </ Row >
883925 </ div >
884926
885927 < div
0 commit comments