Small tweaks

This commit is contained in:
Pieter Vander Vennet 2020-11-15 16:08:17 +01:00
parent e8d176cfe4
commit a144cf17f4
4 changed files with 8 additions and 8 deletions

View file

@ -290,7 +290,7 @@ export class InitUiElements {
if (userdetails.csCount < State.userJourney.mapCompleteHelpUnlock) {
return ""
}
return Translations.t.general.aboutMapcomplete.Render();
return new Combine([Translations.t.general.aboutMapcomplete, "<br/>Version "+State.vNumber]).Render();
}, [Locale.language]))
}
);

2
Svg.ts
View file

@ -104,7 +104,7 @@ export default class Svg {
public static help_svg() { return new FixedUiElement(Svg.help);}
public static help_ui() { return new FixedUiElement(Svg.help_img);}
public static home = " <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"> <svg height=\"16px\" id=\"Layer_1\" style=\"enable-background:new 0 0 16 16;fill:var(--foreground-color);\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16px\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M15.45,7L14,5.551V2c0-0.55-0.45-1-1-1h-1c-0.55,0-1,0.45-1,1v0.553L9,0.555C8.727,0.297,8.477,0,8,0S7.273,0.297,7,0.555 L0.55,7C0.238,7.325,0,7.562,0,8c0,0.563,0.432,1,1,1h1v6c0,0.55,0.45,1,1,1h3v-5c0-0.55,0.45-1,1-1h2c0.55,0,1,0.45,1,1v5h3 c0.55,0,1-0.45,1-1V9h1c0.568,0,1-0.437,1-1C16,7.562,15.762,7.325,15.45,7z\"/> </svg>"
public static home = " <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"> <svg height=\"16px\" id=\"Layer_1\" style=\"enable-background:new 0 0 16 16;\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16px\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M15.45,7L14,5.551V2c0-0.55-0.45-1-1-1h-1c-0.55,0-1,0.45-1,1v0.553L9,0.555C8.727,0.297,8.477,0,8,0S7.273,0.297,7,0.555 L0.55,7C0.238,7.325,0,7.562,0,8c0,0.563,0.432,1,1,1h1v6c0,0.55,0.45,1,1,1h3v-5c0-0.55,0.45-1,1-1h2c0.55,0,1,0.45,1,1v5h3 c0.55,0,1-0.45,1-1V9h1c0.568,0,1-0.437,1-1C16,7.562,15.762,7.325,15.45,7z\"/> </svg>"
public static home_img = Img.AsImageElement(Svg.home)
public static home_svg() { return new FixedUiElement(Svg.home);}
public static home_ui() { return new FixedUiElement(Svg.home_img);}

View file

@ -100,7 +100,7 @@ export default class ValidatedTextField {
}),
ValidatedTextField.tp(
"direction",
"A geographical direction, in degrees. 0° is north, 90° is east",
"A geographical direction, in degrees. 0° is north, 90° is east, ... Will return a value between 0 (incl) and 360 (excl)",
(str) => {
str = "" + str;
return str !== undefined && str.indexOf(".") < 0 && !isNaN(Number(str)) && Number(str) > 0 && Number(str) <= 360

View file

@ -39,19 +39,19 @@
inkscape:window-height="1001"
id="namedview8"
showgrid="false"
inkscape:zoom="3.1466667"
inkscape:cx="77.828572"
inkscape:cy="166.9393"
inkscape:zoom="1.5733333"
inkscape:cx="-95.73727"
inkscape:cy="204.79067"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg6" />
<path
d="m 20,169 23.279468,-6.61917 -1.66207,-3.54505 3.910724,-2.55482 38.819911,53.44943 -16.024713,6.1001 -3.079595,-4.60462 L 35,222 Z M 27.853974,129.44943 251,66 283,178 103,230 Z M 143,7 h 30 v 77 l -31,9 z"
d="m 20,169 23.279468,-6.61917 -1.66207,-3.54505 3.57365,-1.43124 37.583972,53 -14.4517,5.42595 -3.079595,-4.60462 L 35,222 Z M 27.853974,129.44943 251,66 c 5.83831,-1.483989 13.98665,-0.576204 16.78652,10.077906 0,0 13.16723,59.102364 19.90559,86.841004 2.37442,9.77433 -0.21672,13.95095 -6.93927,15.75524 L 103,230 Z"
id="path4"
inkscape:connector-curvature="0"
style="fill:#000000"
sodipodi:nodetypes="ccccccccccccccccccc" />
sodipodi:nodetypes="cccccccccccssccc" />
<circle
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path822"

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB