Problem Statement: We implemented auto-complete feature using app.json for some concepts but all the text-boxes for those fields had fixed width which was hiding major portion of the selected option.
Solution: In order to solve this problem and make it generic for Bahmni we thought of following solution.
Create custom_css.css for all Bahmni apps and refer them in index.html of that app. This will allow us to extend current Bahmni UI as per the client requirement.
- custom_css.css file created at path: /opt/bahmni-web/etc/bahmniapps/clinical
- Referred the file in: /opt/bahmni-web/etc/bahmniapps/clinical/index.html.
After this line in index.html
<link rel="stylesheet" href="./clinical.min.ece504c1.css"/>
Add line before closing head tag (
</head>
)<link rel="stylesheet" href="./custom_css.css"/>
- Added code in Custom CSS custom_css.css file:
.ui-autocomplete-input{ width: 30em !important; }
Do you see any issues in the approach taken?
Before CSS changes:
After CSS Changes: