UX: Do not add leading/trailing spaces when copying API key in Firefox

If there is any other whitespace in the container, then Firefox will add a leading/trailing space when double clicking the key. This commit wraps the key in a div with no whitespace, to work around the problem.
This commit is contained in:
David Taylor 2019-11-12 16:00:57 +00:00
parent f49494b0bf
commit cf4356cd81
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<div class="api-key">
{{#admin-form-row label="admin.api.key"}}
{{#if model.revoked_at}}{{d-icon 'times-circle'}}{{/if}}
{{model.key}}
<div>{{model.key}}</div>
{{/admin-form-row}}
{{#admin-form-row label="admin.api.description"}}