From 20588e4910a7bbb6cc390b93d0507d3d1f3b53c0 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 25 Apr 2023 20:25:10 +0200 Subject: [PATCH] Fix alignment of "No action" editor button --- app/assets/javascripts/editor/editor.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index dfdd3927..9d70d58e 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -671,7 +671,7 @@ var CodeOceanEditor = { $('#start-over-active-file').prop('disabled', this.active_frame.data('role') === 'user_defined_file' || this.active_frame.data('read-only') !== undefined); $('#dummy').toggle(!this.fileActionsAvailable()); $('#render').toggle(this.isActiveFileRenderable()); - $('#run-stop-button-group').tooltip('hide'); + $('#run-stop-button-group').tooltip('hide').toggleClass('flex-grow-1', this.isActiveFileRunnable() || this.isActiveFileStoppable()); $('#run').toggle(this.isActiveFileRunnable() && !this.running); $('#stop').toggle(this.isActiveFileStoppable()); $('#test').toggle(this.isActiveFileTestable());