Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Button Responsiveness and Layout Adjustments #9332

2 changes: 0 additions & 2 deletions package-lock.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discard changes made to the lockfile

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discard changes made to the lockfile

ok

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/CAREUI/interactive/FiltersSlideover.tsx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's switch to using Button component instead of ButtonV2.

Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const AdvancedFilterButton = ({ onClick }: { onClick: () => void }) => {
<ButtonV2
ghost
border
className="w-full bg-white md:w-auto"
className="w-full bg-white md:w-auto mt-2"
onClick={onClick}
id="advanced-filter"
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Facility/FacilityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const FacilityCard = (props: {
</div>
)}
<div
className="flex flex-wrap items-center justify-between"
className="flex flex-wrap items-center gap-2 justify-between"
id="facility-name-card"
>
<div>
Expand Down Expand Up @@ -220,7 +220,7 @@ export const FacilityCard = (props: {
</form>
</DialogModal>
</div>
<div className="flex flex-wrap gap-2">
<div className="flex flex-wrap gap-2 justify-center">
{["DistrictAdmin", "StateAdmin"].includes(userType) && (
<ButtonV2
id="facility-notify"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Kanban/Board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function KanbanBoard<T extends { id: string }>(
</div>
<DragDropContext onDragEnd={props.onDragEnd}>
<div className="h-full overflow-scroll" ref={board}>
<div className="flex items-stretch px-0 pb-2">
<div className="flex items-stretch px-0 pb-2 md:flex-wrap md:gap-5 md:mb-5 lg:gap-6 lg:mb-6 xl:gap-8 xl:mb-8">
{props.sections.map((section, i) => (
<KanbanSection<T>
key={i}
Expand Down Expand Up @@ -146,7 +146,7 @@ export function KanbanSection<T extends { id: string }>(
<div
ref={provided.innerRef}
className={
"relative mr-2 w-[300px] shrink-0 rounded-xl bg-secondary-200"
"relative mr-2 w-[300px] shrink-0 rounded-xl bg-secondary-200 max-[915px]:border max-[915px]:border-solid max-[915px]:border-gray-400"
}
>
<div className="sticky top-0 rounded-xl bg-secondary-200 pt-2">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ export const PatientManager = () => {
</p>
</ButtonV2>
</div>
<div className="flex w-full flex-col items-center justify-end gap-2 lg:ml-3 lg:w-fit lg:flex-row lg:gap-3">
<div className="flex w-full flex-col items-center justify-end flex-wrap gap-2 lg:ml-3 lg:w-fit lg:flex-row lg:gap-3">
<Tabs
tabs={[
{ text: t("live"), value: 0 },
Expand Down Expand Up @@ -914,7 +914,7 @@ export const PatientManager = () => {
});
}, 500);
}}
className="mr-5 w-full lg:w-fit"
className="mr-5 w-full lg:w-fit mt-2"
>
<CareIcon icon="l-export" />
<span className="lg:my-[3px]">Export</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Patient/PatientConsentRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function PatientConsentRecords(props: {
<>
<label
className={
"button-size-default button-shape-square button-primary-default inline-flex h-min w-full cursor-pointer items-center justify-center gap-2 whitespace-pre font-medium outline-offset-1 transition-all duration-200 ease-in-out"
"button-size-default button-shape-square button-primary-default inline-flex mt-2 h-min w-full cursor-pointer items-center justify-center gap-2 whitespace-pre font-medium outline-offset-1 transition-all duration-200 ease-in-out"
}
>
<CareIcon icon={"l-file-upload-alt"} className="text-lg" />
Expand Down
Loading