mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
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.)
This commit is contained in:
parent
c1688d2be3
commit
1336508a4e
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ limitations under the License.
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
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,
|
.mx_Field input:focus + label,
|
||||||
|
|
Loading…
Reference in a new issue