diff --git a/views/problems.ejs b/views/problems.ejs index 3c233c5..35190bb 100644 --- a/views/problems.ejs +++ b/views/problems.ejs @@ -40,10 +40,10 @@ if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id); @@ -53,9 +53,9 @@ if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id); let checked = $('#show_tag').checkbox('is checked'); Cookies.set('show_tag', checked ? '1' : '0'); if (checked) { - document.getElementById('show_tag_style').innerHTML = '.show_tag_controled { visibility: visible; }'; + document.getElementById('show_tag_style').innerHTML = '.show_tag_controled { width: 0; white-space: nowrap; overflow: hidden; }'; } else { - document.getElementById('show_tag_style').innerHTML = '.show_tag_controled { visibility: hidden; }'; + document.getElementById('show_tag_style').innerHTML = '.show_tag_controled { white-space: nowrap; overflow: hidden; }'; } }); }); @@ -98,7 +98,7 @@ if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id);
<% for (let problem of problems) { %> <% if (problem.is_public || problem.allowedEdit) { %> -