Skip to content

Commit

Permalink
rename width to w and height to h to match old site (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterjun3 committed Sep 16, 2021
1 parent 0d7198a commit 4723e44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TASVideos/ViewComponents/Youtube.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TASVideos.ViewComponents
[WikiModule(WikiModules.Youtube)]
public class Youtube : ViewComponent
{
public IViewComponentResult Invoke(string v, int? loop, bool hidelink, bool flashblock, int? width, int? height, string? align, int? start)
public IViewComponentResult Invoke(string v, int? loop, bool hidelink, bool flashblock, int? w, int? h, string? align, int? start)
{
var model = new YoutubeModel
{
Expand All @@ -16,14 +16,14 @@ public IViewComponentResult Invoke(string v, int? loop, bool hidelink, bool flas
FlashBlock = flashblock,
};

if (width.HasValue)
if (w.HasValue)
{
model.Width = width.Value;
model.Width = w.Value;
}

if (height.HasValue)
if (h.HasValue)
{
model.Height = height.Value;
model.Height = h.Value;
}

if (!string.IsNullOrWhiteSpace(align)
Expand Down

0 comments on commit 4723e44

Please sign in to comment.