diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-01-19 00:57:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 00:57:57 +0800 |
commit | 11b482779136fdfb5faf8cffe3241ed0578f82c2 (patch) | |
tree | de91f9a703aec73eb888466f63fe2f45e3a772d9 /web_src/less | |
parent | 9dcf0bf6ecffc631efd2808702af7f4f4dd23ffc (diff) | |
download | gitea-11b482779136fdfb5faf8cffe3241ed0578f82c2.tar.gz gitea-11b482779136fdfb5faf8cffe3241ed0578f82c2.zip |
Make the height of the editor in Review Box smaller (4 lines as GitHub) (#18319)
And shrink the height of Dropzone.
Diffstat (limited to 'web_src/less')
-rw-r--r-- | web_src/less/features/dropzone.less | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/web_src/less/features/dropzone.less b/web_src/less/features/dropzone.less index 1a54457129..d31aedff3e 100644 --- a/web_src/less/features/dropzone.less +++ b/web_src/less/features/dropzone.less @@ -1,10 +1,16 @@ -.dropzone { - border: 2px dashed var(--color-secondary) !important; - background: none !important; - box-shadow: none !important; - padding: 0 !important; - min-height: 5rem !important; - border-radius: 4px !important; +.ui .field { + .dropzone { + border: 2px dashed var(--color-secondary); + background: none; + box-shadow: none; + padding: 0; + border-radius: 4px; + min-height: 0; + margin-top: -1em; // we have another `field` above, it's usually an EasyMDE editor with "status bar", so we do not need the space above. + .dz-message { + margin: 10px 0; + } + } } .dropzone .dz-button { |