From: Andrew Gundersen Date: Wed, 17 Mar 2021 14:33:04 +0000 (-0500) Subject: more improvments X-Git-Tag: v0.9~26 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=9eca20a2a358d31517a0d5bac33e307393e80ea3;p=mime-chat more improvments --- diff --git a/src/components/inputItem/controllers/textCtrl.ts b/src/components/inputItem/controllers/textCtrl.ts index 0955096..115e9c5 100644 --- a/src/components/inputItem/controllers/textCtrl.ts +++ b/src/components/inputItem/controllers/textCtrl.ts @@ -15,8 +15,8 @@ let side = "right"; // Side of parent we are on. let visible = false; // Whether textInput is visible. function showTextInput () { - let t1 = (side === "right") ? 50 : -70; - let t2 = (side === "right") ? 110 : -130; + const t1 = (side === "right") ? 50 : -70; + const t2 = (side === "right") ? 110 : -130; anime({ targets: '#textInput', @@ -31,7 +31,7 @@ function showTextInput () { } function hideTextInput() { - let t = (side === "right") ? 50 : -80; + const t = (side === "right") ? 50 : -80; anime({ targets: '#textInput', @@ -46,7 +46,7 @@ function hideTextInput() { } function switchSide(currentSide: string) { - let t = (currentSide === "right") ? -130 : 110; + const t = (currentSide === "right") ? -130 : 110; anime({ targets: '#textInput',