Commit 3b64a932 authored by SpinShare's avatar SpinShare

added collapsable texts

parent 0644b56a
...@@ -12,9 +12,7 @@ ...@@ -12,9 +12,7 @@
<div class="actions"> <div class="actions">
</div> </div>
</div> </div>
<div class="comment" v-if="comment"> <CollapsableText v-bind:text="comment" v-if="comment" />
{{ comment }}
</div>
</div> </div>
</template> </template>
...@@ -22,8 +20,13 @@ ...@@ -22,8 +20,13 @@
import { remote } from 'electron'; import { remote } from 'electron';
const { clipboard } = remote; const { clipboard } = remote;
import CollapsableText from '@/components/CollapsableText.vue';
export default { export default {
name: 'SongReview', name: 'SongReview',
components: {
CollapsableText
},
props: [ props: [
'id', 'id',
'user', 'user',
...@@ -43,6 +46,9 @@ ...@@ -43,6 +46,9 @@
background: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
border-radius: 4px; border-radius: 4px;
padding: 20px; padding: 20px;
overflow: hidden;
word-wrap: break-word;
word-break: break-all;
& .metadata { & .metadata {
display: grid; display: grid;
...@@ -110,10 +116,8 @@ ...@@ -110,10 +116,8 @@
} }
} }
} }
& .collapsableText {
& .comment {
margin-top: 15px; margin-top: 15px;
line-height: 1.5em;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment