ui: fix problem__tag styles and file operations (#1087)

This commit is contained in:
Hao Liu authored and GitHub committed 2025-11-18 03:57:00 +00:00
1 parent 7f7bff9613
commit 6bed7e4cac
2 files changed
+5 -2

No files matched your search

@@ -43,6 +43,9 @@
flex-grow: 0
flex-shrink: 0
margin-right: 8px
&:before,
> *
margin-right: 4px
> :last-child
margin-right: 0
&:focus
+2 -2
View File
@@ -332,10 +332,10 @@ function handleDrop(e: JQuery.DropEvent<Document, undefined, HTMLElement, HTMLEl
}
const page = new NamedPage([
'problem_files', 'problem_edit', 'contest_edit', 'contest_manage',
'problem_config', 'problem_files', 'problem_edit', 'contest_edit', 'contest_manage',
'home_files', 'training_files', 'homework_files',
], (pageName) => {
if (pageName === 'problem_edit') endpoint = './files';
if (pageName === 'problem_config' || pageName === 'problem_edit') endpoint = './files';
$(document).on('click', '[name="file_rename"]', (ev) => handleClickRename(ev));
$(document).on('click', '[name="file_remove"]', (ev) => handleClickRemove(ev));
$(document).on('click', '[name="upload_file"]', (ev) => handleClickUpload(ev));