Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix: fixed buttons alignment by giving right margin (#1)
Browse files Browse the repository at this point in the history
* fix: fixed buttons alignment by giving right margin

fixed #2518

* fix: removed extra right margin

fix #2518
  • Loading branch information
Adarsh710 authored Dec 15, 2020
1 parent ea832b2 commit e0a6418
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/imagings/requests/NewImagingRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const NewImagingRequest = () => {
/>
</div>
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">
<div className="btn-group btn-group-lg mt-3 mr-3">
<Button className="mr-2" color="success" onClick={onSave}>
{t('actions.save')}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/incidents/report/ReportIncident.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const ReportIncident = () => {
</Row>

<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">
<div className="btn-group btn-group-lg mt-3 mr-3">
<Button className="mr-2" color="success" onClick={onSave}>
{t('incidents.actions.report')}
</Button>
Expand Down
9 changes: 2 additions & 7 deletions src/incidents/view/ViewIncidentDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ function ViewIncidentDetails(props: Props) {

if (permissions.includes(Permissions.ResolveIncident)) {
buttons.push(
<Button
className="mr-2"
onClick={onResolve}
color="primary"
key="incidents.reports.resolve"
>
<Button onClick={onResolve} color="primary" key="incidents.reports.resolve">
{t('incidents.reports.resolve')}
</Button>,
)
Expand Down Expand Up @@ -134,7 +129,7 @@ function ViewIncidentDetails(props: Props) {
</Row>
{data.resolvedOn === undefined && (
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">{getButtons()}</div>
<div className="btn-group btn-group-lg mt-3 mr-3">{getButtons()}</div>
</div>
)}
</>
Expand Down
2 changes: 1 addition & 1 deletion src/labs/ViewLab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const ViewLab = () => {
)}
{isEditable && (
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">{getButtons()}</div>
<div className="btn-group btn-group-lg mt-3 mr-3">{getButtons()}</div>
</div>
)}
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/labs/requests/NewLabRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const NewLabRequest = () => {
/>
</div>
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">
<div className="btn-group btn-group-lg mt-3 mr-3">
<Button className="mr-2" color="success" onClick={onSave}>
{t('labs.requests.save')}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/medications/ViewMedication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const ViewMedication = () => {
</Row>
{isEditable && (
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">{getButtons()}</div>
<div className="btn-group btn-group-lg mt-3 mr-3">{getButtons()}</div>
</div>
)}
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/medications/requests/NewMedicationRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const NewMedicationRequest = () => {
/>
</div>
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">
<div className="btn-group btn-group-lg mt-3 mr-3">
<Button className="mr-2" color="success" onClick={onSave}>
{t('actions.save')}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/patients/new/NewPatient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const NewPatient = () => {
error={createError}
/>
<div className="row float-right">
<div className="btn-group btn-group-lg mt-3">
<div className="btn-group btn-group-lg mt-3 mr-3">
<Button className="btn-save mr-2" color="success" onClick={onSave}>
{t('actions.save')}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/scheduling/appointments/new/NewAppointment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const NewAppointment = () => {
onFieldChange={onFieldChange}
/>
<div className="row float-right">
<div className="btn-group btn-group-lg">
<div className="btn-group btn-group-lg mr-3">
<Button className="mr-2" color="success" onClick={onSave}>
{t('actions.save')}
</Button>
Expand Down

0 comments on commit e0a6418

Please sign in to comment.