nicolium: i should test this at least

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-17 10:35:55 +01:00
parent edb1b007a9
commit b0fd49f4f2

View File

@ -31,7 +31,7 @@ const ThreadStatus: React.FC<IThreadStatus> = (props): React.JSX.Element => {
const isLoaded = Boolean(statusData);
const { deleted } = useStatusMeta(id);
const [maxIndentDepth] = React.useState(isMobile() ? 6 : 8);
const [maxIndentDepth] = React.useState(isMobile(window.innerWidth) ? 6 : 8);
const isIndentMode = props.depth !== undefined;
const depth = Math.min(props.depth ?? 0, maxIndentDepth);
@ -86,7 +86,11 @@ const ThreadStatus: React.FC<IThreadStatus> = (props): React.JSX.Element => {
);
};
const DepthBorders: React.FC<{ depth: number }> = ({ depth }) => (
interface IDepthBorders {
depth: number;
}
const DepthBorders: React.FC<IDepthBorders> = ({ depth }) => (
<>
{new Array(depth).fill(0).map((_, d) => (
<span