ui: fix bugs & add feature (#493)

pull/498/head
panda 2 years ago committed by GitHub
parent f0aa9a8d46
commit 65e5296436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -274,7 +274,7 @@ const AutoComplete = forwardRef(function Impl<T>(props: AutoCompleteProps<T>, re
}; };
return ( return (
<div style={{ display: 'inline-block', width: '100%', marginBottom: '1rem' }}> <div className="autocomplete-container" style={{ display: 'inline-block', width: '100%', marginBottom: '1rem' }}>
<div <div
className={focused ? 'autocomplete-wrapper focused' : 'autocomplete-wrapper'} className={focused ? 'autocomplete-wrapper focused' : 'autocomplete-wrapper'}
style={{ width, height }} style={{ width, height }}

@ -31,6 +31,9 @@ div.textbox
input.textbox, textarea.textbox input.textbox, textarea.textbox
margin-bottom: 0 margin-bottom: 0
div.autocomplete-container
margin-bottom: 0 !important
// Material Textbox // Material Textbox
label.textbox.material label.textbox.material
input input

@ -12,6 +12,8 @@ $spinner-margin = ($nav-item-height - $spinner-size) / 2
left: 0 left: 0
width: 100% width: 100%
height: 2px height: 2px
+mobile()
margin-top: rem(10px)
#nprogress .peg #nprogress .peg
display: none display: none

@ -20,9 +20,10 @@
<div class="media__body profile-header__main"> <div class="media__body profile-header__main">
<h1> <h1>
{{ udoc['uname'] }} {{ udoc['uname'] }}
<small>({{ _('UID') }}: {{ udoc['_id'] }})</small> {% if udoc.displayName %}<small>({{ udoc['displayName'] }})</small>{% endif %}
</h1> </h1>
<p> <p>
{{ _('UID') }}: {{ udoc['_id'] }},
{{ _('Registered at') }} {{ datetimeSpan(udoc['regat'])|safe }}, {{ _('Registered at') }} {{ datetimeSpan(udoc['regat'])|safe }},
{{ _('last login at') }} {{ datetimeSpan(udoc['loginat'])|safe }}, {{ _('last login at') }} {{ datetimeSpan(udoc['loginat'])|safe }},
{% if sdoc %} {% if sdoc %}

@ -375,3 +375,18 @@ $hover-background-color = #424242
border-bottom-color: #1d1d1d border-bottom-color: #1d1d1d
} }
} }
.omnibar-toggle
background-color: $main-background-color
color: $content-color
.omnibar-main
color: $content-color
input
background-color: $main-background-color !important
border-color: #3d3d3d !important
.omnibar-content-section
background-color: $main-background-color !important
border-color: #3d3d3d !important

Loading…
Cancel
Save