Use Video label in PDF links and preserve deployment safeguards
This commit is contained in:
@@ -85,8 +85,7 @@ public class PdfWeekTableBuilder(PdfOptions options)
|
||||
if (!string.IsNullOrWhiteSpace(exercise.VideoUrl))
|
||||
{
|
||||
var link = row.Cells[6].AddParagraph().AddHyperlink(exercise.VideoUrl, HyperlinkType.Url);
|
||||
// Invisible break opportunities keep long URLs within the cell; the target stays unchanged.
|
||||
link.AddText(string.Join("\u200B", exercise.VideoUrl.Select(character => character.ToString())));
|
||||
link.AddText("Видео");
|
||||
link.Font.Color = Color.Parse(options.AccentColor);
|
||||
link.Font.Underline = Underline.Single;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user