Skip to content

Commit

Permalink
Added video description to property editor
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed May 18, 2023
1 parent 5016a60 commit ab38294
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Limbo.Umbraco.Vimeo/wwwroot/Scripts/Controllers/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@
if (!rawVideoData) {
vm.videoId = null;
vm.title = null;
vm.description = null;
vm.duration = null;
vm.thumbnail = null;
return;
}

vm.videoId = rawVideoData.uri.split("/")[2].split(":")[0];
vm.title = rawVideoData.name;
vm.description = rawVideoData.description;
vm.thumbnail = vimeoService.getThumbnail(rawVideoData);

vm.duration = rawVideoData.duration;
Expand Down
7 changes: 7 additions & 0 deletions src/Limbo.Umbraco.Vimeo/wwwroot/Styles/Default.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
.limbo-vimeo-video-details table tr + tr td {
padding-top: 4px;
}
.limbo-vimeo-video-description {
margin-top: 15px;
white-space: pre-wrap;
color: #333;
line-height: 20px;
font-size: 14px;
}
.limbo-vimeo-video pre {
display: none;
}
Expand Down
8 changes: 8 additions & 0 deletions src/Limbo.Umbraco.Vimeo/wwwroot/Styles/Default.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@

}

&-description {
margin-top: 15px;
white-space: pre-wrap;
color: #333;
line-height: 20px;
font-size: 14px;
}

pre {
display: none;
}
Expand Down
1 change: 1 addition & 0 deletions src/Limbo.Umbraco.Vimeo/wwwroot/Views/Video.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ <h5><localize key="limboVimeo_video">Video</localize></h5>
</td>
</tr>
</table>
<div ng-if="vm.description" class="limbo-vimeo-video-description">{{vm.description}}</div>
</div>
</div>
</div>
Expand Down

0 comments on commit ab38294

Please sign in to comment.