Skip to content

Commit 593f131

Browse files
Merge pull request #593 from France-ioi/franceioi-design
Franceioi design
2 parents aa8c49a + 2ab0860 commit 593f131

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

frontend/buffers/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export function Editor(props: EditorProps) {
309309
// editor.setBehavioursEnabled(false);
310310
editor.current.setTheme(`ace/theme/${props.theme || 'textmate'}`);
311311
session.setMode(`ace/mode/${props.mode || 'text'}`);
312-
editor.current.setFontSize(Math.round(16 * zoomLevel) + 'px');
312+
editor.current.setFontSize(Math.round(18 * zoomLevel) + 'px');
313313
editor.current.setOptions({
314314
readOnly: !!props.readOnly,
315315
enableBasicAutocompletion: props.hasAutocompletion,
@@ -403,7 +403,7 @@ export function Editor(props: EditorProps) {
403403

404404
useEffect(() => {
405405
if (editor.current) {
406-
editor.current.setFontSize(Math.round(16 * zoomLevel) + 'px');
406+
editor.current.setFontSize(Math.round(18 * zoomLevel) + 'px');
407407
}
408408
}, [zoomLevel]);
409409

frontend/task/libs/quickalgo_library_factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function* createQuickalgoLibrary(platformAlreadyChanged: boolean = false)
192192
yield* put(taskSetContextIncludeBlocks(JSON.parse(JSON.stringify(context.infos.includeBlocks))));
193193
}
194194
if (context.infos && context.infos.panelCollapsed) {
195-
yield* put(taskSetBlocksPanelCollapsed({collapsed: false, manual: true}));
195+
yield* put(taskSetBlocksPanelCollapsed({collapsed: true}));
196196
}
197197

198198
yield* call(quickAlgoLibraryResetAndReloadStateSaga);

frontend/task/task.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ html:not([active-view="task"]):not([active-view="solution"]) {
540540
pre {
541541
display: block;
542542
padding: 10px;
543-
font-size: 16px;
543+
font-size: 1rem;
544544
line-height: 1.42857143;
545545
color: #333;
546546
word-break: break-all;
@@ -1081,7 +1081,7 @@ pre, #app .ace_editor, .stack-view, .subtitles-band-frame {
10811081
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
10821082

10831083
.code-header {
1084-
font-size: 0.85rem;
1084+
font-size: 0.9rem;
10851085
font-weight: 600;
10861086
padding: 0.4rem 0.8rem;
10871087
background: #e5e7eb;
@@ -1090,7 +1090,6 @@ pre, #app .ace_editor, .stack-view, .subtitles-band-frame {
10901090

10911091
pre, .editor {
10921092
margin: 0;
1093-
font-size: 0.95rem;
10941093
overflow-x: auto;
10951094
line-height: 1.5;
10961095
}

0 commit comments

Comments
 (0)