Skip to content

Commit be97ebd

Browse files
committed
styling fixed for select active ontology
1 parent d4c7be9 commit be97ebd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/components/Dashboard/EditBulkTerms/SearchTerms.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const SearchTerms = ({ searchConditions, setSearchConditions, initialSearchCondi
116116
</Stack>
117117

118118
{ontologyEditOption === Confirmation.Yes && (
119-
<OntologySearch placeholder="Enter an Ontology URI" fullWidth />
119+
<OntologySearch placeholder="Enter an Ontology URI" fullWidth extra={{ width: '500px !important' }}/>
120120
)}
121121
</Box>
122122

src/components/SingleTermView/OntologySearch.jsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const OPTIONS = [
2121
{ label: 'Nervous system1', badge: 'My Organization 1', selected: false },
2222
{ label: 'Nervous system2', badge: 'ODC-TBI', selected: false },
2323
{ label: 'Nervous system3', badge: 'Dk-net', selected: false },
24-
{ label: 'Nervous system4', badge: 'My Organization 2', selected: false }
24+
{ label: 'Nervous system666', badge: 'My Organization 2', selected: false }
2525
];
2626

2727
const styles = {
@@ -81,7 +81,7 @@ const styles = {
8181
}
8282
};
8383

84-
const OntologySearch = ({ placeholder, fullWidth = false, disabled }) => {
84+
const OntologySearch = ({ placeholder, fullWidth = false, disabled, extra }) => {
8585
const [searchTerm, setSearchTerm] = React.useState('');
8686
const [openList, setOpenList] = React.useState(false);
8787
const [selectedValue, setSelectedValue] = React.useState(null);
@@ -141,7 +141,7 @@ const OntologySearch = ({ placeholder, fullWidth = false, disabled }) => {
141141

142142
const PaperComponent = useMemo(() => {
143143
const Component = ({ children }) => (
144-
<Box sx={styles.popperBox}>
144+
<Box sx={{ ...styles.popperBox, ...extra }}>
145145
{children}
146146
<Divider sx={{ marginTop: '.31rem' }} />
147147
<Box p='.75rem 1rem'>
@@ -257,7 +257,8 @@ OntologySearch.propTypes = {
257257
fullWidth: PropTypes.bool,
258258
key: PropTypes.string,
259259
children: PropTypes.node,
260-
disabled: PropTypes.bool
260+
disabled: PropTypes.bool,
261+
extra: PropTypes.object
261262
};
262263

263-
export default OntologySearch;
264+
export default OntologySearch;

0 commit comments

Comments
 (0)