diff --git a/frontend/react/src/constants/constants.ts b/frontend/react/src/constants/constants.ts index 1f485702..190f5abb 100644 --- a/frontend/react/src/constants/constants.ts +++ b/frontend/react/src/constants/constants.ts @@ -504,7 +504,7 @@ export namespace ContextActions { export const PATH = new ContextAction( "path", "Create route", - "Click on the map to add a destination add the end of the path. This allows to create a more complex route.", + "Click on the map to add a destination at the end of the path. This allows to create a more complex route.", faRoute, ContextActionTarget.POINT, (units: Unit[], _, targetPosition) => { diff --git a/frontend/react/src/ui/panels/maptoolbar.tsx b/frontend/react/src/ui/panels/maptoolbar.tsx index 40e288c4..981027e3 100644 --- a/frontend/react/src/ui/panels/maptoolbar.tsx +++ b/frontend/react/src/ui/panels/maptoolbar.tsx @@ -78,8 +78,8 @@ export function MapToolBar(props: {}) { {options.ctrlKey && ( @@ -89,8 +89,8 @@ export function MapToolBar(props: {}) { {options.altKey && ( @@ -100,8 +100,8 @@ export function MapToolBar(props: {}) { {options.shiftKey && ( @@ -112,8 +112,8 @@ export function MapToolBar(props: {}) { {options.code && ( @@ -153,10 +153,7 @@ export function MapToolBar(props: {}) { checked={selectionEnabled} icon={faObjectGroup} tooltip={() => ( -
+
{shortcutCombination(shortcuts["toggleSelectionEnabled"]?.getOptions())}
Box selection
@@ -229,14 +226,19 @@ export function MapToolBar(props: {}) { icon={contextActionIt.getIcon()} tooltip={() => (
-
- {shortcutCombination(contextActionIt.getOptions())} -
{contextActionIt.getLabel()}
-
-
{contextActionIt.getDescription()}
+ className="overflow-hidden" + style={{ animationName: "tooltipFadeInHeight", animationDuration: "1s", animationFillMode: "forwards", height: "26px" }} + > +
+ {shortcutCombination(contextActionIt.getOptions())} +
{contextActionIt.getLabel()}
+
+
+ {contextActionIt.getDescription()} +
)} tooltipPosition="side" diff --git a/frontend/react/src/ui/ui.css b/frontend/react/src/ui/ui.css index 95147ad0..ca1aa76c 100644 --- a/frontend/react/src/ui/ui.css +++ b/frontend/react/src/ui/ui.css @@ -107,7 +107,7 @@ input[type="range"]:focus::-moz-range-thumb { @keyframes tooltipFadeInHeight { 99% { - height: 25px; + height: 26px; } 100% { height: fit-content;