Skip to content

Commit

Permalink
fix: evened out target parameters units
Browse files Browse the repository at this point in the history
  • Loading branch information
jcw780 committed Jul 14, 2020
1 parent a65eeb9 commit cc2ebeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Navbar/NavDropdownContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ interface propsT{
links: T.singleLinkT[], title: string,
}
export class NavDropdownContainer extends React.Component<propsT>{
private makeScroller = (ref : React.RefObject<any> | ((any) => void)) => {
private makeScroller = (refFunc : React.RefObject<any> | ((any) => void)) => {
const scrollToRef = (ref : React.RefObject<any>) => {
const {current} = ref;
if(current !== undefined || current !== null) window.scrollTo(0, current!.offsetTop);
}
if(ref instanceof (Function)){
return ref;
if(refFunc instanceof (Function)){
return refFunc;
}else{
return () => scrollToRef(ref);
return () => scrollToRef(refFunc);
}
}
private makeDropdowns = () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/TargetForms/TargetForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ export class TargetFormsContainer extends React.PureComponent<{}, targetFormsCon
const {targetData} = this;
const commonStyle = {
formControl: {minWidth: '50%', maxWidth: '6rem', display: "inline-flex"},
formGroup: {marginBottom: '0rem'}
formGroup: {marginBottom: '0rem'},
inputGroupAppend: {width: '2.5rem', display: 'inline-block'}
};
const singleLabel = ([key, value], i) => {
return (
Expand Down

0 comments on commit cc2ebeb

Please sign in to comment.