Skip to content

Commit

Permalink
QA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elsoazemelet committed Mar 12, 2024
1 parent 70d8950 commit 9c519ab
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/renderer/main/user-interface/Tracker.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import { setTooltip } from "./tooltip/Tooltip.ts";
import TooltipQuestion from "./tooltip/TooltipQuestion.svelte";
import { appSettings } from "../../runtime/app-helper.store";
import { Analytics } from "../../runtime/analytics.js";
Expand Down Expand Up @@ -34,20 +35,32 @@
</script>

<container class={$$props.class}>
<div class="flex flex-col items-center gap-2 bg-primary py-2 px-3 rounded-lg">
<div class="flex flex-row items-center">
<span class="text-white mr-4">Interaction Tracking:</span>
<div class="w-24 h-fit text-white">
<div class="flex flex-row items-center gap-2 bg-primary py-2 px-3 rounded-lg">
<div class="flex flex-row gap-2 items-center">
<span class="text-white">Track:</span>
<div
use:setTooltip={{
placement: "top",
class: "w-60 p-4 z-10",
key: "tracker_tooltip",
}}
class="w-24 h-fit text-white"
>
<MeltSelect
bind:target={$appSettings.persistent.changeOnEvent}
{options}
/>
</div>
</div>
<div class="flex flex-row w-full items-center">
<TooltipQuestion key={"reset_grid_layout"} class="mr-2 text-white " />
<div
use:setTooltip={{
placement: "top",
class: "w-60 p-4 z-10",
key: "reset_grid_layout",
}}
>
<MoltenPushButton
text={"Reset Grid Layout"}
text={"Reset View"}
on:click={handleGridLayoutResetClicked}
snap={ButtonSnap.FULL}
disabled={$appSettings.gridLayoutShift.x == 0 &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,6 @@ export const tooltip_content = {
"New version of this block is available, click on Update to restore your configuration.",
reset_grid_layout:
"The displayed modules can be repositioned by click and dragging the mouse while holding the control key.",
tracker_tooltip:
"When changing a control element, the tracking option determines selection scope.",
};

0 comments on commit 9c519ab

Please sign in to comment.