Skip to content

Commit 44eb014

Browse files
committed
use ng-class in copy-to-clipboard directive
1 parent f2e4fda commit 44eb014

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/styles/_core.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ h1 small.meta, .build-config-summary .meta {
12051205
}
12061206

12071207
// don't allow copy-to-clipboard .input-groups get bigger than 600px so Github webhook secrets aren't revealed within the input-group
1208-
copy-to-clipboard .input-group {
1208+
copy-to-clipboard .input-group.limit-width {
12091209
max-width: 300px;
12101210
}
12111211

app/views/directives/_copy-to-clipboard.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="input-group copy-to-clipboard" style="{{displayWide ? 'max-width:100%;' : ''}}">
1+
<div class="input-group copy-to-clipboard" ng-class="{'limit-width': !displayWide}">
22
<input id="{{id}}" type="text" class="form-control" value="{{inputText ? inputText : clipboardText}}" ng-disabled="isDisabled" ng-readonly="!isDisabled" select-on-focus>
33
<span class="input-group-btn" ng-hide="hidden">
44
<a ng-show="!inputText" data-clipboard-target="#{{id}}"

dist/scripts/templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4837,7 +4837,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
48374837

48384838

48394839
$templateCache.put('views/directives/_copy-to-clipboard.html',
4840-
"<div class=\"input-group copy-to-clipboard\" style=\"{{displayWide ? 'max-width:100%;' : ''}}\">\n" +
4840+
"<div class=\"input-group copy-to-clipboard\" ng-class=\"{'limit-width': !displayWide}\">\n" +
48414841
"<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{inputText ? inputText : clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
48424842
"<span class=\"input-group-btn\" ng-hide=\"hidden\">\n" +
48434843
"<a ng-show=\"!inputText\" data-clipboard-target=\"#{{id}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +

dist/styles/main.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -3995,7 +3995,7 @@ labels+.resource-details{margin-top:10px}
39953995
.environment-variables.table.table-bordered>tbody>tr>td:last-child .env-var-value a{font-family:"Open Sans",Helvetica,Arial,sans-serif}
39963996
.pretty-json{font-family:Menlo,Monaco,Consolas,monospace;white-space:pre-wrap}
39973997
.info-popover,.warnings-popover{cursor:help;vertical-align:middle;margin-left:2px}
3998-
copy-to-clipboard .input-group{max-width:300px}
3998+
copy-to-clipboard .input-group.limit-width{max-width:300px}
39993999
.strong{font-weight:700}
40004000
.tech-preview-header{justify-content:space-between}
40014001
@media (max-width:479px){.col-xxs-12{width:100%}

0 commit comments

Comments
 (0)