PlotDirector/PlotLine/Views/Shared/_FocusFollowControl.cshtml

3 lines
515 B
Plaintext

@{var embedded=ViewContext.RouteData.Values["controller"]?.ToString()=="Writing";}
<button type="button" class="@(embedded?"btn btn-outline-secondary btn-sm":"pd-ribbon-command")" data-shared-focus-hold data-focus-held-label="@(embedded?"Release":"Resume")" aria-pressed="false" disabled title="Shared focus is connecting. Your local position is retained.">@if(!embedded){<svg class="pd-icon" viewBox="0 0 24 24" aria-hidden="true"><path data-focus-mode-icon d="M8 4v16 M16 4v16"/></svg>}<span>Hold</span></button>