From e4b10c779b3607f8fa51f0ae05ea65bd71661685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Tainon?= Date: Fri, 18 Aug 2023 11:58:24 +0200 Subject: [PATCH] [Fix] Design issues --- frontend/buffers/Editor.tsx | 4 ++-- frontend/task/task_tests.scss | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/frontend/buffers/Editor.tsx b/frontend/buffers/Editor.tsx index 1ca089276..3289ff870 100644 --- a/frontend/buffers/Editor.tsx +++ b/frontend/buffers/Editor.tsx @@ -333,14 +333,14 @@ export function Editor(props: EditorProps) { editor.current.execCommand("startAutocomplete"); // @ts-ignore completer = editor.current.completer; - completer.detach(); + completer?.detach(); } if (completer && completer.popup) { completer.popup.container.style.width = "22%"; } // removal of return for autocomplete - if (completer.keyboardHandler.commandKeyBinding.return) + if (completer && completer.keyboardHandler.commandKeyBinding.return) delete completer.keyboardHandler.commandKeyBinding.return; } diff --git a/frontend/task/task_tests.scss b/frontend/task/task_tests.scss index 0fdd9c025..13fccd787 100644 --- a/frontend/task/task_tests.scss +++ b/frontend/task/task_tests.scss @@ -49,6 +49,7 @@ align-items: center; color: #7c7c7c; font-weight: bold; + line-height: 36px; &.is-selectable { cursor: pointer; @@ -121,15 +122,6 @@ } } -@media /* Tablets and desktop */ -screen and (min-width: 768px) and (max-width: 1024.9px) and (orientation: portrait), -screen and (min-width: 855px) and (min-height: 450px) and (orientation: landscape), -screen and (min-width: 1025px) and (min-height: 450px) { - .tests-selector .tests-selector-tab { - line-height: 36px; - } -} - .test-results-overview { display: flex; font-weight: bold;