Use Video label in PDF links and preserve deployment safeguards

This commit is contained in:
DmitriyFadin
2026-10-13 22:51:20 +03:00
parent ad3cd6f671
commit 98770521b1
4 changed files with 40 additions and 3 deletions
@@ -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;
}