style: refine callout box margins, selection popover positioning, and footer hover contrast

This commit is contained in:
2026-06-02 20:00:02 +02:00
parent 01bc8e37b9
commit 900690875f
6 changed files with 31 additions and 19 deletions
@@ -58,7 +58,7 @@
private bool IsVisible => !string.IsNullOrEmpty(SelectedText) && Coordinates != null;
private bool IsLoading = false;
private KnowledgePacket? Packet;
private bool PositionBelow => Coordinates != null && Coordinates.Top < 320;
private bool PositionBelow => Coordinates != null && Coordinates.Top < 250;
protected override void OnParametersSet()
{
@@ -69,7 +69,7 @@
private string PanelStyle => Coordinates != null
? string.Create(System.Globalization.CultureInfo.InvariantCulture,
$"top: {(PositionBelow ? Coordinates.Top + 35 : Coordinates.Top - 15):F1}px !important; " +
$"top: {(PositionBelow ? Coordinates.Bottom + 8 : Coordinates.Top - 8):F1}px !important; " +
$"left: {Math.Clamp(Coordinates.Left + Coordinates.Width / 2, 280, 1600):F1}px !important; " +
$"transform: translate(-50%, {(PositionBelow ? "0" : "-100%")}) !important;")
: "";