style: notes

This commit is contained in:
cv
2021-06-13 14:29:41 +02:00
parent 17ddfb535f
commit 68b723d4ec
5 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
import style from './EditableText.module.css'; import style from './EditableText.module.css';
export default function EditableText(props) { export default function EditableText(props) {
const { label, defaultValue, placeholder, submitHandler } = props; const { label, defaultValue, placeholder, submitHandler, ...rest } = props;
const [text, setText] = useState(defaultValue || ''); const [text, setText] = useState(defaultValue || '');
useEffect(() => { useEffect(() => {
@@ -22,7 +22,7 @@ export default function EditableText(props) {
}; };
return ( return (
<div className={style.block}> <div className={style.block} {...rest}>
<span className={style.title}>{label}</span> <span className={style.title}>{label}</span>
<Editable <Editable
onChange={(v) => handleChange(v)} onChange={(v) => handleChange(v)}
@@ -77,6 +77,7 @@ const ExpandedBlock = (props) => {
label='Note' label='Note'
defaultValue={data.note} defaultValue={data.note}
placeholder='Add Note' placeholder='Add Note'
style={{ color: '#d69e2e' }}
submitHandler={(v) => submitHandler={(v) =>
actionHandler('update', { field: 'note', value: v }) actionHandler('update', { field: 'note', value: v })
} }
+1 -1
View File
@@ -71,7 +71,7 @@ export default function Info() {
return ( return (
<> <>
<div className={style.main}>{selected}</div> <div className={style.main}>{selected}</div>
<InfoLogger logData={logData} /> {/* <InfoLogger logData={logData} /> */}
<InfoNif /> <InfoNif />
<InfoTitle title={'Now'} data={titlesNow} /> <InfoTitle title={'Now'} data={titlesNow} />
<InfoTitle title={'Next'} data={titlesNext} /> <InfoTitle title={'Next'} data={titlesNext} />
+4
View File
@@ -30,6 +30,10 @@
color: #ccc; color: #ccc;
} }
.notes {
color: #d69e2e;
}
.if { .if {
font-size: 0.8em; font-size: 0.8em;
color: #4bffabcc; color: #4bffabcc;
+2 -2
View File
@@ -32,8 +32,8 @@ export default function InfoTitle(props) {
<span className={style.label}>Subtitle: </span> <span className={style.label}>Subtitle: </span>
{data.subtitle} {data.subtitle}
</div> </div>
<div> <div className={style.notes}>
<span className={style.label}>Notes: </span> <span className={style.label}>Note: </span>
{data.note} {data.note}
</div> </div>
</> </>