mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	player: add ability to hide description
This commit is contained in:
		
							parent
							
								
									87925d9d82
								
							
						
					
					
						commit
						b13ea11b45
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
					@ -26,7 +26,15 @@
 | 
				
			||||||
        <p>
 | 
					        <p>
 | 
				
			||||||
            Uploaded on <b>{{ video.uploadDate }}</b>
 | 
					            Uploaded on <b>{{ video.uploadDate }}</b>
 | 
				
			||||||
        </p>
 | 
					        </p>
 | 
				
			||||||
 | 
					        <a
 | 
				
			||||||
 | 
					            class="uk-button uk-button-small"
 | 
				
			||||||
 | 
					            style="background: #222"
 | 
				
			||||||
 | 
					            @click="showDesc = !showDesc"
 | 
				
			||||||
 | 
					        >
 | 
				
			||||||
 | 
					            {{ showDesc ? "+" : "-" }}
 | 
				
			||||||
 | 
					        </a>
 | 
				
			||||||
        <p
 | 
					        <p
 | 
				
			||||||
 | 
					            v-show="showDesc"
 | 
				
			||||||
            class="uk-light"
 | 
					            class="uk-light"
 | 
				
			||||||
            v-if="video.description"
 | 
					            v-if="video.description"
 | 
				
			||||||
            v-html="video.description.replaceAll('\n', '<br>')"
 | 
					            v-html="video.description.replaceAll('\n', '<br>')"
 | 
				
			||||||
| 
						 | 
					@ -89,7 +97,8 @@ export default {
 | 
				
			||||||
            player: null,
 | 
					            player: null,
 | 
				
			||||||
            audioplayer: null,
 | 
					            audioplayer: null,
 | 
				
			||||||
            sponsors: null,
 | 
					            sponsors: null,
 | 
				
			||||||
            selectedAutoPlay: null
 | 
					            selectedAutoPlay: null,
 | 
				
			||||||
 | 
					            showDesc: true
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    mounted() {
 | 
					    mounted() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue