ui: bug fixes

This commit is contained in:
undefined committed 2022-03-16 20:39:38 +08:00
1 parent 346f68f03b
commit c8b49e8ee2
5 files changed
+22 -75

No files matched your search

@@ -172,6 +172,7 @@ export default class Editor extends DOMAttachedObject {
const { onChange } = this.options;
await new Promise((resolve) => {
this.vditor = new Vditor(ele, {
...config,
upload: {
multiple: false,
handler: (files) => {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.34.9",
"version": "4.34.10",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -1,77 +1,4 @@
.page--problem_edit
.widget--category-filter
&__category
margin-bottom: rem(6px)
&-tag
display: inline-block
padding: rem(5px 6px)
&:hover
color: #FFF
background: $primary-color
text-decoration: none
&.selected
color: #FFF
background: $secondary-color
&__drop
position: relative
font-size: rem($font-size-small)
width: rem(170px)
padding: rem(10px)
margin-right: rem(10px)
background: $menu-drop-bg-color
box-shadow: $menu-drop-shadow
&:before
content: ''
display: block
position: absolute
width: 0
height: 0
border: rem($menu-drop-triangle-size) solid transparent
border-top-color: #FFF
border-left-color: #FFF
box-shadow: $menu-drop-triangle-shadow
transform: rotate(135deg)
transform-origin: 0 0
pointer-events: none
left: 100%
top: 50%
margin-left: rem(floor($menu-drop-triangle-size * 1.414))
&__subcategory
margin: rem(2px)
display: inline-block
&-tag
display: inline-block
padding: rem(5px 6px)
&:hover
color: #FFF
background: $primary-color
text-decoration: none
&.selected
color: #FFF
background: $secondary-color
.drop-target-attached-right .widget--category-filter__drop
margin-right: 0
margin-left: rem(10px)
&:before
transform-origin: 100% 0
transform: rotate(-45deg)
left: auto
right: 100%
margin-left: 0
margin-right: 0
margin-top: rem(floor($menu-drop-triangle-size * -1.414))
.section__tab-header-item
border-top: 3px solid transparent;
transition: border-color 0.2s, background 0.2s, color 0.2s;
@@ -50,7 +50,7 @@
&__drop
position: relative
font-size: rem($font-size-small)
width: rem(170px)
width: rem(230px)
padding: rem(10px)
margin-right: rem(10px)
background: $menu-drop-bg-color
+19
View File
@@ -286,6 +286,25 @@
.data-table thead>tr
border-bottom-color: #2b2b2b
blockquote.note
border-left-color: #29679e
&:before
color: #29679e
blockquote.warn
border-left-color: #a80800
&:before
color: #a80800
blockquote.red
border-left-color: #a80800
blockquote.yellow
border-left-color: #8f7c00
blockquote.blue
border-left-color: #00396b
.token.comment,.token.prolog,.token.doctype,.token.cdata
color: #57A64A
font-style: italic