fix: prettier formatting in PollContent and MediaGallery
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,9 +70,8 @@ function computeVotes(
|
|||||||
answerIds = (content['m.selections'] as string[] | undefined) ?? [];
|
answerIds = (content['m.selections'] as string[] | undefined) ?? [];
|
||||||
} else {
|
} else {
|
||||||
answerIds =
|
answerIds =
|
||||||
((content['org.matrix.msc3381.poll.response'] as any)?.answers as
|
((content['org.matrix.msc3381.poll.response'] as any)?.answers as string[] | undefined) ??
|
||||||
| string[]
|
[];
|
||||||
| undefined) ?? [];
|
|
||||||
}
|
}
|
||||||
if (answerIds.length === 0) continue;
|
if (answerIds.length === 0) continue;
|
||||||
const ts = ev.getTs();
|
const ts = ev.getTs();
|
||||||
|
|||||||
@@ -237,11 +237,7 @@ export function MediaGallery({ room, onClose }: MediaGalleryProps) {
|
|||||||
</Box>
|
</Box>
|
||||||
</Header>
|
</Header>
|
||||||
|
|
||||||
<Box
|
<Box shrink="No" gap="100" style={{ padding: `${config.space.S200} ${config.space.S200} 0` }}>
|
||||||
shrink="No"
|
|
||||||
gap="100"
|
|
||||||
style={{ padding: `${config.space.S200} ${config.space.S200} 0` }}
|
|
||||||
>
|
|
||||||
{(Object.keys(TAB_LABELS) as GalleryTab[]).map((t) => (
|
{(Object.keys(TAB_LABELS) as GalleryTab[]).map((t) => (
|
||||||
<TabButton key={t} label={TAB_LABELS[t]} active={tab === t} onClick={() => setTab(t)} />
|
<TabButton key={t} label={TAB_LABELS[t]} active={tab === t} onClick={() => setTab(t)} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user