-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using input field for monitoring endpoint url #98
Using input field for monitoring endpoint url #98
Conversation
Signed-off-by: Patrik Kernstock <[email protected]>
Signed-off-by: Patrik Kernstock <[email protected]>
Signed-off-by: Patrik Kernstock <[email protected]>
Signed-off-by: Patrik Kernstock <[email protected]>
If there's the default margin-bottom:0 applied, the page starts flickering when the "Copy" tooltip is shown. So this is probably sort of a (working) workaround. Signed-off-by: Patrik Kernstock <[email protected]>
Signed-off-by: Patrik Kernstock <[email protected]>
Thanks a lot for pointing that out, @Noodlesalat! I have just pushed some new changes, including the clipboard copy feature. |
templates/settings-admin.php
Outdated
<?php p($l->t('You can connect an external monitoring tool by using this end point:')); ?> | ||
</p> | ||
<div> | ||
<input type="text" readonly="readonly" style="width: 415px;" id="monitoring-endpoint-url" value="<?php echo p($_['ocs']); ?>" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style="width: 415px;"
This style tag breaks on mobile devices. I think a value in percent (e.g. 70%) is better. In addition we could move this into the style.css file for better overview.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good points, thanks! 80% works out great on a few tests, I think it's a good value IMO.
Signed-off-by: Patrik Kernstock <[email protected]>
This looks good for me now. In my opinion this can be merged! @MorrisJobke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
Simply replaced the monitoring endpoint url with an input field and added a listener for automatically selecting the whole url when clicking on the input field.
Should (partially) solve #90 point 4, clipboard copy functionality may still be missing.