Skip to content

Conversation

Kevinjil
Copy link
Contributor

@Kevinjil Kevinjil commented Sep 10, 2025

Visually, this is more in line with the rest of the design. It also clears some vertical space which can be used by the monaco editor.

Old:
image
image

New:
image
image

Visually, this is more in line with the rest of the design. It also
clears some vertical space which can be used by the monaco editor.
@eldering
Copy link
Member

eldering commented Sep 14, 2025

Not sure how easy it would be, but would be nice to have a third option "diff off" to just show the plain source.

And even better would be to store this in a cookie, I think. But feel free to let either be for another PR.

Sometimes, you want to easily read the submission instead of the diff
with the previous submission. Unfortunately, Monaco cannot easily switch
between a diff editor and a normal editor (see
microsoft/monaco-editor#1881). We mimic the
normal editor behaviour instead.

Store the current diff mode instead of the side-by-side boolean in local
storage. The latest release did not yet include the storage variable, so
no migration is added.
@Kevinjil
Copy link
Contributor Author

@eldering This is the best I could easily do. The commit message contains the reasoning why we do it this way. This also adds context that this is about diffs, resolving @meisterT comment.
image

@Kevinjil
Copy link
Contributor Author

@eldering The mode was already stored in local storage. I think it makes sense to keep it there and not move it to cookies, as there is no need to communicate it to the webserver.

@meisterT
Copy link
Member

LGTM, 🚢 it

@Kevinjil Kevinjil added this pull request to the merge queue Sep 15, 2025
Merged via the queue into DOMjudge:main with commit 9a96341 Sep 15, 2025
36 checks passed
@Kevinjil Kevinjil deleted the diff-mode-radio branch September 15, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants