Skip to content

Commit 860ce6c

Browse files
committed
Squashed commit of the following:
commit b494ab9 Author: Jane Kamata <38163243+janekamata@users.noreply.github.com> Date: Tue Apr 14 19:50:34 2026 -0400 Styling fixes (#425) commit bd40505 Merge: 928ad1f e08b3fd Author: prooflesben <122566738+prooflesben@users.noreply.github.com> Date: Tue Apr 14 18:46:04 2026 -0400 Merge pull request #414 from Code-4-Community/backgroundFix background fix commit e08b3fd Merge: 6ca3482 10fb2cd Author: Jane Kamata <38163243+janekamata@users.noreply.github.com> Date: Mon Apr 13 13:24:48 2026 -0400 Merge branch 'main' into backgroundFix commit 6ca3482 Author: adityapat24 <appathak46@gmail.com> Date: Sun Apr 12 17:22:07 2026 -0400 removed media query commit 36c4cb3 Author: adityapat24 <appathak46@gmail.com> Date: Sun Apr 12 13:59:18 2026 -0400 background fix
1 parent 2c9e838 commit 860ce6c

14 files changed

Lines changed: 23 additions & 23 deletions

File tree

‎frontend/src/components/ActionConfirmation.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import { IoIosWarning } from "react-icons/io";
6868
<Button text="Yes, confirm" onClick={() => {
6969
onConfirmDelete();
7070
onCloseDelete();
71-
}} className="border-grey-500 hover:text-primary-900" />
71+
}} className="border-grey-500" />
7272
</div>
7373

7474
</div>

‎frontend/src/components/Button.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function Button({
5151
)}
5252
{logo && logoPosition === "center" && (
5353
<span className="flex items-center justify-center">
54-
<FontAwesomeIcon icon={logo} className="w-3 h-3 lg:w-4 lg:h-4" />
54+
<FontAwesomeIcon icon={logo} className="w-6 h-6" />
5555
</span>
5656
)}
5757
</button>

‎frontend/src/main-page/cash-flow/components/CashAddRevenue.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export default function CashAddRevenue() {
298298
text="Add Revenue Source"
299299
onClick={handleSubmit}
300300
disabled={isSubmitting}
301-
className="bg-green hover:!border-green text-white mt-2 text-sm lg:text-base"
301+
className="bg-green hover:!border-green text-white mt-2 text-sm lg:text-base active:!bg-green active:!border-green w-full"
302302
/>
303303
</div>
304304
);

‎frontend/src/main-page/cash-flow/components/CashEditLineItem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function CashEditLineItem({
5959
logo={faTrash}
6060
logoPosition="right"
6161
onClick={() => setShowDeleteModal(true)}
62-
className="bg-red-light text-red hover:!border-red text-sm lg:text-base"
62+
className="bg-red-light text-red hover:!border-red text-sm lg:text-base active:!bg-red active:!border-red"
6363
/>
6464
</>
6565
)}

‎frontend/src/main-page/cash-flow/components/CashRevenueInstallment.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function CashRevenueInstallment({
7777
onClick={() => onDelete?.()}
7878
logo={faTrash}
7979
logoPosition="center"
80-
className="bg-red-light text-red w-10 h-10 p-0 rounded-full mb-1.5 shrink-0 border-0"
80+
className="bg-red-light text-red w-10 h-10 p-0 rounded-full mb-1.5 shrink-0 border-0 active:!bg-red active:!border-red hover:!border-red"
8181
/>
8282
) : (
8383
<div className="hidden xl:block w-8 h-8 shrink-0" />

‎frontend/src/main-page/grants/GrantPage.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ function GrantPage() {
3838
grants[0] ??
3939
null;
4040

41+
const mainContainer = document.getElementsByClassName('grant-container');
42+
43+
useEffect(() => {
44+
clearAllFilters();
45+
mainContainer[0].scrollTo(0, 0);
46+
}, [curGrant]);
47+
4148
const handleGrantCreated = (grantId: number) => {
4249
setCurId(grantId);
4350

@@ -132,7 +139,7 @@ function GrantPage() {
132139
/>
133140
))}
134141
</div>
135-
<div className="flex-1 overflow-y-auto rounded-md">
142+
<div className="grant-container flex-1 overflow-y-auto rounded-md">
136143
<GrantItem grant={curGrant} />
137144
</div>
138145
</div>) : (<div className="flex w-full h-full justify-center mt-24 text-gray-500 text-2xl">

‎frontend/src/main-page/grants/edit-grant/EditGrant.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const EditGrant: React.FC<{
211211
{/* Divider */}
212212
{grantToEdit && (<div>
213213
<hr className="border-grey-400 border-t-2 rounded-full" />
214-
<Button text="Delete Grant" logo={faTrash} logoPosition="right" className="w-fit mt-6 ml-auto text-red hover:border-red bg-red-light" onClick={() => setShowDeleteModal(true)}/>
214+
<Button text="Delete Grant" logo={faTrash} logoPosition="right" className="w-fit mt-6 ml-auto text-red active:!bg-red active:!border-red hover:border-red bg-red-light" onClick={() => setShowDeleteModal(true)}/>
215215
<ActionConfirmation
216216
isOpen={showDeleteModal}
217217
onCloseDelete={() => setShowDeleteModal(false)}

‎frontend/src/main-page/grants/edit-grant/components/EditGrantInfo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
6767
logo={faCheckSquare}
6868
logoPosition="left"
6969
text="Yes"
70-
className={`text-gray-700 px-2 py-1 w-20 text-sm border-2 hover:!border-green active:bg-green ${form.doesBcanQualify === "yes" ? "text-green border-green" : "border-grey-300 text-grey-700"}`}
70+
className={`text-gray-700 px-2 py-1 w-20 text-sm border-2 hover:!border-green active:!bg-green ${form.doesBcanQualify === "yes" ? "text-green border-green" : "border-grey-300 text-grey-700"}`}
7171
onClick={() =>
7272
dispatch({
7373
type: "SET_FIELD",

‎frontend/src/main-page/grants/grant-view/GrantView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const GrantItem: React.FC<GrantItemProps> = observer(({ grant }) => {
205205
{
206206
label: "Contacts",
207207
item: (
208-
<div className="grid grid-cols-1 2xl:grid-cols-2 w-full h-full lg:w-[85%] gap-6">
208+
<div className="grid grid-cols-1 2xl:grid-cols-2 w-full h-full lg:w-[90%] gap-6">
209209
<ContactCard contact={grant.bcan_poc} type="BCAN" />
210210
<ContactCard
211211
contact={grant.grantmaker_poc}

‎frontend/src/main-page/settings/ChangePasswordModal.tsx‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
PasswordRequirements,
77
isPasswordValid,
88
} from "../../sign-up";
9+
import Button from "../../components/Button";
910

1011
export type ChangePasswordFormValues = {
1112
currentPassword: string;
@@ -119,15 +120,7 @@ export default function ChangePasswordModal({
119120
{error ?? "Your passwords do not match."}
120121
</div>
121122
)}
122-
123-
<button
124-
type="button"
125-
onClick={handleSave}
126-
disabled={!canSave}
127-
className="w-full rounded-md py-2.5 text-base font-semibold text-white transition disabled:cursor-not-allowed disabled:opacity-50 bg-primary-900 enabled:hover:opacity-90"
128-
>
129-
Save
130-
</button>
123+
<Button text="Save" onClick={handleSave} disabled={!canSave} className="bg-primary-900 text-white w-full" />
131124
</div>
132125
</div>
133126
</div>

0 commit comments

Comments
 (0)