From 1336508a4e066da9868fe82cba30f34a5ef5643c Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 5 Mar 2019 11:13:37 +0000 Subject: [PATCH] Add comment, fix bad math This adds a comment to explain the `max-width` and also fixes it actually use the right value. (I had grabbed the wrong part of `margin` the first time.) --- res/css/views/elements/_Field.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/css/views/elements/_Field.scss b/res/css/views/elements/_Field.scss index d0814afccd..02f0e548fb 100644 --- a/res/css/views/elements/_Field.scss +++ b/res/css/views/elements/_Field.scss @@ -92,7 +92,7 @@ limitations under the License. overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - max-width: calc(100% - 18px); + max-width: calc(100% - 20px); // 100% of parent minus margin and padding } .mx_Field input:focus + label,