+
{props.event.content || "Poll"}
{$results.voters} voter{$results.voters === 1 ? "" : "s"}
diff --git a/src/app/components/NoteContentPoll.svelte b/src/app/components/NoteContentPoll.svelte
index ffcf9bc3..53fcb203 100644
--- a/src/app/components/NoteContentPoll.svelte
+++ b/src/app/components/NoteContentPoll.svelte
@@ -1,55 +1,29 @@
-
-
-
{props.event.content || "Poll"}
-
- {pollType === "multiplechoice" ? "Multiple choice" : "Single choice"}
- {#if endsAt}
- · Ends {formatTimestampRelative(endsAt)}
- {/if}
- {#if closed}
- · Closed
- {/if}
-
-
-
- {$results.voters} voter{$results.voters === 1 ? "" : "s"}
-
-
+
{props.event.content || "Poll"}
-
- {#each $results.options as option (option.id)}
- {@const maxVotes = Math.max(...$results.options.map(item => item.votes), 1)}
-
-
- {option.label}
- {option.votes}
-
-
-
- {/each}
-
+ {#if props.url}
+
+ {/if}
diff --git a/src/app/components/PollCreate.svelte b/src/app/components/PollCreate.svelte
index fb17bf51..33d3cc3e 100644
--- a/src/app/components/PollCreate.svelte
+++ b/src/app/components/PollCreate.svelte
@@ -1,15 +1,17 @@
Create a Poll
- Ask the room a question with one or more answers.
+ Ask a question and collect votes right in the feed.
@@ -114,22 +171,33 @@
Options*
{/snippet}
{#snippet input()}
-
- {#each options as option, index (index)}
-
+
diff --git a/src/app/components/PollVotes.svelte b/src/app/components/PollVotes.svelte
index c334f9b9..d134f384 100644
--- a/src/app/components/PollVotes.svelte
+++ b/src/app/components/PollVotes.svelte
@@ -1,10 +1,10 @@