Merge pull request #2742 from jryans/limit-field-label

Limit Field label to size of input
pull/21833/head
J. Ryan Stinnett 2019-03-05 11:16:05 +00:00 committed by GitHub
commit a3d6d43f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ limitations under the License.
margin: 7px 8px;
padding: 2px;
pointer-events: none; // Allow clicks to fall through to the input
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: calc(100% - 20px); // 100% of parent minus margin and padding
}
.mx_Field input:focus + label,