CSS + behavior tweaks
This commit is contained in:
parent
1c4faffceb
commit
ed78059ec5
|
@ -155,13 +155,13 @@ const Editor = props => {
|
||||||
}
|
}
|
||||||
|
|
||||||
{ props.readOnly ? (
|
{ props.readOnly ? (
|
||||||
<div className="footer">
|
<div className="r6o-footer">
|
||||||
<button
|
<button
|
||||||
className="r6o-btn"
|
className="r6o-btn"
|
||||||
onClick={onCancel}>{i18n.t('Close')}</button>
|
onClick={onCancel}>{i18n.t('Close')}</button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="footer">
|
<div className="r6o-footer">
|
||||||
<button
|
<button
|
||||||
className="r6o-btn outline"
|
className="r6o-btn outline"
|
||||||
onClick={onCancel}>{i18n.t('Cancel')}</button>
|
onClick={onCancel}>{i18n.t('Cancel')}</button>
|
||||||
|
|
|
@ -7,8 +7,8 @@ const Autocomplete = props => {
|
||||||
|
|
||||||
const [ inputItems, setInputItems ] = useState(props.vocabulary);
|
const [ inputItems, setInputItems ] = useState(props.vocabulary);
|
||||||
|
|
||||||
useEffect(() =>
|
// useEffect(() =>
|
||||||
element.current?.querySelector('input')?.focus(), []);
|
// element.current?.querySelector('input')?.focus(), []);
|
||||||
|
|
||||||
const onInputValueChange = ({ inputValue }) => {
|
const onInputValueChange = ({ inputValue }) => {
|
||||||
if (inputValue.length > 0) {
|
if (inputValue.length > 0) {
|
||||||
|
|
|
@ -19,8 +19,9 @@ export default class TextEntryField extends Component {
|
||||||
|
|
||||||
// Focus on render
|
// Focus on render
|
||||||
onRender = ref => {
|
onRender = ref => {
|
||||||
if (ref && this.props.editable)
|
if (ref && this.props.editable) {
|
||||||
ref.focus();
|
ref.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.r6o-footer {
|
||||||
text-align:right;
|
text-align:right;
|
||||||
padding:8px 0;
|
padding:8px 0;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
min-height:3em;
|
min-height:3em;
|
||||||
background-color:#fff;
|
background-color:#fff;
|
||||||
position:relative;
|
position:relative;
|
||||||
padding:8px 10px;
|
|
||||||
|
.r6o-editable-text {
|
||||||
|
padding:8px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.lastmodified {
|
.lastmodified {
|
||||||
border:1px solid $lightgrey-border;
|
border:1px solid $lightgrey-border;
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
|
|
||||||
.r6o-autocomplete {
|
.r6o-autocomplete {
|
||||||
flex:1;
|
flex:1;
|
||||||
|
position:relative;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
|
@ -96,6 +97,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
width:100%;
|
||||||
padding:0 3px;
|
padding:0 3px;
|
||||||
min-width:80px;
|
min-width:80px;
|
||||||
outline:none;
|
outline:none;
|
||||||
|
|
Loading…
Reference in New Issue