diff --git a/src/renderer/components/molecules/Toot.vue b/src/renderer/components/molecules/Toot.vue
index c4710283..94d062cc 100644
--- a/src/renderer/components/molecules/Toot.vue
+++ b/src/renderer/components/molecules/Toot.vue
@@ -60,16 +60,7 @@
-
-
- -
- {{ option.title }}
-
-
-
Vote
- {{ poll.votes_count }} votes,
- until {{ parseDatetime(poll.expires_at, now) }}
-
+
@@ -194,20 +185,21 @@ import DisplayStyle from '~/src/constants/displayStyle'
import TimeFormat from '~/src/constants/timeFormat'
import emojify from '~/src/renderer/utils/emojify'
import FailoverImg from '~/src/renderer/components/atoms/FailoverImg'
+import Poll from '~/src/renderer/components/molecules/Toot/Poll'
import { setInterval, clearInterval } from 'timers'
export default {
name: 'toot',
components: {
- FailoverImg
+ FailoverImg,
+ Poll
},
data() {
return {
showContent: this.$store.state.App.ignoreCW,
showAttachments: this.$store.state.App.ignoreNFSW,
hideAllAttachments: this.$store.state.App.hideAllAttachments,
- now: Date.now(),
- pollRadio: null
+ now: Date.now()
}
},
props: {
@@ -640,17 +632,6 @@ export default {
word-wrap: break-word;
}
- .poll {
- .poll-list {
- list-style: none;
- padding-left: 16px;
-
- li {
- margin: 4px 0;
- }
- }
- }
-
.emojione {
width: 20px;
height: 20px;
diff --git a/src/renderer/components/molecules/Toot/Poll.vue b/src/renderer/components/molecules/Toot/Poll.vue
new file mode 100644
index 00000000..a51e6798
--- /dev/null
+++ b/src/renderer/components/molecules/Toot/Poll.vue
@@ -0,0 +1,63 @@
+
+
+
+ -
+ {{ option.title }}
+
+
+
Vote
+ {{ poll.votes_count }} votes,
+ until {{ parseDatetime(poll.expires_at, now) }}
+
+
+
+
+
+