tweak special input field further

This commit is contained in:
Mateusz Konieczny 2022-09-23 16:39:34 +02:00
parent 0e1d81f41e
commit 5b4c0be1e5
3 changed files with 23 additions and 2 deletions

View File

@ -6,4 +6,22 @@
.with-margin {
margin-left: 0.7em;
margin-right: 0.7em;
}
.input-lookalike {
display: block;
width: 100%;
height: calc(1.5em + .75rem + 2px);
padding: .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
text-align: left;
border-color: #999;
padding: .25rem .5rem;
}

View File

@ -48,7 +48,9 @@ const NumericDataEntryWithFormattedLink: React.FunctionComponent<NumericDataEntr
)
}
/>
{props.value == undefined ? <div></div> : <a className="with-margin" href={props.linkTargetFunction(props.value)} target="_blank">{props.linkDescriptionFunction(props.value)}</a>}
<div className="input-lookalike with-margin">
{props.value == undefined ? <div></div> : <a className="with-margin" href={props.linkTargetFunction(props.value)} target="_blank">{props.linkDescriptionFunction(props.value)}</a>}
</div>
</FieldRow>
</Fragment>
);

View File

@ -133,8 +133,9 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => (
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
placeholder="If yes, add ID"
linkTargetFunction={(id: String) => { return "https://historicengland.org.uk/listing/the-list/list-entry/" + id + "?section=official-list-entry" } }
linkDescriptionFunction={(id: String) => { return "description at the official site" } }
linkDescriptionFunction={(id: String) => { return "ID Link" } }
/>
<Verification
slug="planning_list_id"