Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@types/react-dom": "^19.3.0",
"@types/styled-components": "^5.1.36",
"@vitejs/plugin-react": "^6.1.2",
"oxc-transform-react": "^0.157.0",
"typescript": "^5.9.3",
"vite": "^8.3.5"
}
Expand Down
274 changes: 272 additions & 2 deletions pnpm-lock.yaml

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

4 changes: 3 additions & 1 deletion src/view/atoms/MessageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ const IsolatedHTML: React.FC<{ html: string }> = ({ html }) => {
// resize() runs in listeners/timeouts that close over the initial render, so
// read the latest height from a ref to avoid a stale-closure comparison.
const heightRef = useRef(height);
heightRef.current = height;
useEffect(() => {
heightRef.current = height;
}, [height]);

useEffect(() => {
const iframe = ref.current;
Expand Down
1 change: 1 addition & 0 deletions src/view/moles/AddAccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ const AddAccountForm = ({
(error as Error).message || "Registration failed. Please try again.",
);
}
setSubmitting(false);
};

const isBusy = loading || isSubmitting;
Expand Down
12 changes: 7 additions & 5 deletions src/view/moles/ComposeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ const ComposeDialog = ({
// Keep the panel unmounted when closed so each open starts fresh with the
// latest reply context (recipients, subject, threading headers).
keepMounted={false}
PaperProps={{
sx: {
height: fullScreen ? "100%" : "90vh",
display: "flex",
flexDirection: "column",
slotProps={{
paper: {
sx: {
height: fullScreen ? "100%" : "90vh",
display: "flex",
flexDirection: "column",
},
},
}}
>
Expand Down
4 changes: 2 additions & 2 deletions src/view/moles/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
useTheme,
} from "@mui/material";
import { useColorScheme } from "@mui/material/styles";
import React from "react";
import React, { startTransition } from "react";
import { useNavigate } from "react-router-dom";
import { useAccount } from "../../nonview/core/AccountContext";
import { getInitials } from "../_constants/avatarUtils";
Expand Down Expand Up @@ -149,7 +149,7 @@ const Header = ({
</Tooltip>

<IconButton
onClick={() => navigate("/profile")}
onClick={() => startTransition(() => navigate("/profile"))}
aria-label="profile"
sx={{ ml: isMobile ? 0.5 : 1 }}
>
Expand Down
5 changes: 2 additions & 3 deletions src/view/moles/MessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ const MessageBubble = ({
urlRef.current = url;
setPreview((p) => (p ? { ...p, url, loading: false } : p));
} catch (e) {
setPreview((p) =>
p ? { ...p, loading: false, error: e?.message || "Preview failed" } : p,
);
const errorMsg = e?.message || "Preview failed";
setPreview((p) => (p ? { ...p, loading: false, error: errorMsg } : p));
}
};

Expand Down
Loading
Loading