Skip to content

Commit 5f50f46

Browse files
committed
chore: various styling issues
1 parent 8b6a6bd commit 5f50f46

4 files changed

Lines changed: 12 additions & 23 deletions

File tree

apps/website/src/app/dashboard/[id]/ama/amas/[amaId]/_components/AMADetails.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function ChannelIcon({ channel }: { readonly channel: GuildChannelInfo | Possibl
2222
export function AMADetails() {
2323
const params = useParams<{ amaId: string; id: string }>();
2424
const router = useRouter();
25-
const [isEndingAMA, setIsEndingAMA] = useState(false);
2625
const [showEndConfirm, setShowEndConfirm] = useState(false);
2726

2827
const { data: ama, isLoading } = client.guilds.ama.useAMA(params.id, params.amaId);
@@ -52,13 +51,11 @@ export function AMADetails() {
5251
}
5352

5453
try {
55-
setIsEndingAMA(true);
5654
await updateAMA.mutateAsync({ ended: true });
5755
router.push(`/dashboard/${params.id}/ama/amas`);
5856
} catch (error) {
5957
console.error('Failed to end AMA:', error);
6058
} finally {
61-
setIsEndingAMA(false);
6259
setShowEndConfirm(false);
6360
}
6461
};
@@ -177,7 +174,7 @@ export function AMADetails() {
177174
{!ama.promptMessageExists && !ama.ended && (
178175
<div className="pt-2">
179176
<Button
180-
className="px-6 py-3 bg-misc-accent text-white rounded-md hover:bg-misc-accent/90 transition-colors disabled:opacity-50"
177+
className="bg-misc-accent text-white rounded-md hover:bg-misc-accent/90 transition-colors disabled:opacity-50"
181178
onPress={handleRepostPrompt}
182179
type="button"
183180
>
@@ -202,15 +199,14 @@ export function AMADetails() {
202199
</p>
203200
<div className="flex gap-3">
204201
<Button
205-
className="px-6 py-3 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors disabled:opacity-50"
206-
isDisabled={isEndingAMA}
202+
className="px-3 py-2.5 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors disabled:opacity-50"
207203
onPress={handleEndAMA}
208204
type="button"
209205
>
210-
{isEndingAMA ? 'Ending...' : 'Yes, End AMA'}
206+
Yes, End AMA
211207
</Button>
212208
<Button
213-
className="px-6 py-3 bg-on-tertiary dark:bg-on-tertiary-dark text-primary dark:text-primary-dark rounded-md hover:bg-on-secondary dark:hover:bg-on-secondary-dark transition-colors"
209+
className="px-3 py-2.5 bg-on-tertiary dark:bg-on-tertiary-dark text-primary dark:text-primary-dark rounded-md hover:bg-on-secondary dark:hover:bg-on-secondary-dark transition-colors"
214210
onPress={() => setShowEndConfirm(false)}
215211
type="button"
216212
>
@@ -224,7 +220,7 @@ export function AMADetails() {
224220
Ending an AMA will prevent new questions from being submitted. This action cannot be undone.
225221
</p>
226222
<Button
227-
className="px-6 py-3 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors"
223+
className="px-3 py-2.5 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors"
228224
onPress={handleEndAMA}
229225
type="button"
230226
>

apps/website/src/app/dashboard/[id]/ama/amas/new/_components/CreateAMAForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,14 @@ export function CreateAMAForm() {
312312

313313
<div className="flex gap-4">
314314
<Button
315-
className="px-6 py-3 bg-misc-accent text-white rounded-md hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed"
315+
className="px-3 py-2.5 bg-misc-accent text-white rounded-md hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed"
316316
isDisabled={createAMA.isPending}
317317
type="submit"
318318
>
319319
{createAMA.isPending ? 'Creating...' : 'Create AMA Session'}
320320
</Button>
321321
<Button
322-
className="px-6 py-3 bg-on-tertiary dark:bg-on-tertiary-dark text-primary dark:text-primary-dark rounded-md hover:bg-on-secondary dark:hover:bg-on-secondary-dark transition-colors"
322+
className="px-3 py-2.5 bg-on-tertiary dark:bg-on-tertiary-dark text-primary dark:text-primary-dark rounded-md hover:bg-on-secondary dark:hover:bg-on-secondary-dark transition-colors"
323323
onPress={() => router.back()}
324324
type="button"
325325
>

apps/website/src/app/dashboard/_components/DashboardCrumbs.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,10 @@ const SEGMENT_OPTIONS: SegmentOptionsEntry[] = [
7070
return null;
7171
}
7272

73-
// Build options with "New" first, then existing AMAs
74-
const options: BreadcrumbOption[] = [
75-
{
76-
label: 'New AMA',
77-
href: `/dashboard/${context.guildId}/ama/amas/new`,
78-
},
79-
...data.amaSessions.map((s) => ({
80-
label: s.title,
81-
href: `/dashboard/${context.guildId}/ama/amas/${s.id}`,
82-
})),
83-
];
73+
const options: BreadcrumbOption[] = data.amaSessions.map((s) => ({
74+
label: s.title,
75+
href: `/dashboard/${context.guildId}/ama/amas/${s.id}`,
76+
}));
8477

8578
return {
8679
options,

apps/website/src/components/footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SvgGitHub } from '@/components/icons/SvgGitHub';
44

55
export function Footer() {
66
return (
7-
<footer className="g-4 flex flex-col items-start justify-between gap-3 border-t-2 border-solid border-t-on-secondary px-6 py-3 font-medium sm:flex-row sm:items-center sm:gap-4 dark:border-t-on-secondary-dark">
7+
<footer className="g-4 flex flex-col items-start justify-between gap-3 border-t-2 border-solid border-t-on-secondary px-3 py-2.5 font-medium sm:flex-row sm:items-center sm:gap-4 dark:border-t-on-secondary-dark">
88
<span className="whitespace-nowrap text-secondary dark:text-secondary-dark">© ChatSift, 2022 - Present</span>
99
<div className="flex w-full flex-row flex-wrap items-center justify-between gap-3 sm:w-auto sm:gap-4">
1010
<div className="flex flex-row items-center gap-4">

0 commit comments

Comments
 (0)