3
3
* License: MS-RSL – see LICENSE.md for details
4
4
*/
5
5
6
+ import { Space } from "antd" ;
6
7
import * as immutable from "immutable" ;
7
8
import { throttle } from "lodash" ;
8
9
import React , { useEffect , useRef , useState } from "react" ;
9
10
import { FormattedMessage , useIntl } from "react-intl" ;
10
11
11
- import {
12
- Button ,
13
- ButtonGroup ,
14
- ButtonToolbar ,
15
- } from "@cocalc/frontend/antd-bootstrap" ;
12
+ import { Button , ButtonToolbar } from "@cocalc/frontend/antd-bootstrap" ;
16
13
import { Gap , Icon } from "@cocalc/frontend/components" ;
17
14
import { useStudentProjectFunctionality } from "@cocalc/frontend/course" ;
18
15
import { CustomSoftwareInfo } from "@cocalc/frontend/custom-software/info-bar" ;
@@ -22,6 +19,7 @@ import { labels } from "@cocalc/frontend/i18n";
22
19
import { file_actions , ProjectActions } from "@cocalc/frontend/project_store" ;
23
20
import * as misc from "@cocalc/util/misc" ;
24
21
import { COLORS } from "@cocalc/util/theme" ;
22
+
25
23
import { useProjectContext } from "../context" ;
26
24
27
25
const ROW_INFO_STYLE = {
@@ -301,9 +299,9 @@ export const ActionBar: React.FC<Props> = (props: Props) => {
301
299
action_buttons = [ ...ACTION_BUTTONS_MULTI ] ;
302
300
}
303
301
return (
304
- < ButtonGroup >
302
+ < Space . Compact >
305
303
{ action_buttons . map ( ( v ) => render_action_button ( v ) ) }
306
- </ ButtonGroup >
304
+ </ Space . Compact >
307
305
) ;
308
306
}
309
307
@@ -318,7 +316,7 @@ export const ActionBar: React.FC<Props> = (props: Props) => {
318
316
return ;
319
317
}
320
318
return (
321
- < ButtonGroup >
319
+ < Space . Compact >
322
320
< CustomSoftwareInfo
323
321
project_id = { props . project_id }
324
322
images = { props . images }
@@ -328,7 +326,7 @@ export const ActionBar: React.FC<Props> = (props: Props) => {
328
326
show_custom_software_reset = { ! ! props . show_custom_software_reset }
329
327
project_is_running = { ! ! props . project_is_running }
330
328
/>
331
- </ ButtonGroup >
329
+ </ Space . Compact >
332
330
) ;
333
331
} else {
334
332
return render_action_buttons ( ) ;
@@ -341,9 +339,9 @@ export const ActionBar: React.FC<Props> = (props: Props) => {
341
339
< div style = { { flex : "1 0 auto" } } >
342
340
< div ref = { buttonRef } style = { { flex : "1 0 auto" } } >
343
341
< ButtonToolbar style = { { whiteSpace : "nowrap" , padding : "0" } } >
344
- < ButtonGroup >
342
+ < Space . Compact >
345
343
{ props . project_is_running ? render_check_all_button ( ) : undefined }
346
- </ ButtonGroup >
344
+ </ Space . Compact >
347
345
{ render_button_area ( ) }
348
346
</ ButtonToolbar >
349
347
</ div >
0 commit comments