mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Fix long credential name styles
This commit is contained in:
@@ -669,6 +669,8 @@ input[type='radio']:checked:before {
|
|||||||
.Form-textInput--variableHeight {
|
.Form-textInput--variableHeight {
|
||||||
height: inherit;
|
height: inherit;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
max-height: 120px;
|
||||||
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Form-variableHeightButtonGroup {
|
.Form-variableHeightButtonGroup {
|
||||||
|
|||||||
@@ -126,14 +126,15 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.JobSubmission-footerPreview {
|
.JobSubmission-footerPreview {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1 0 auto;
|
|
||||||
}
|
}
|
||||||
.JobSubmission-footerButtons {
|
.JobSubmission-footerButtons {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
.JobSubmission-previewItem {
|
.JobSubmission-previewItem {
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
@@ -193,6 +194,8 @@
|
|||||||
border: 1px solid @default-border;
|
border: 1px solid @default-border;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
max-height: 120px;
|
||||||
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
.JobSubmission-selectedItemRevert {
|
.JobSubmission-selectedItemRevert {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="JobSubmission-previewTags--outer">
|
<div class="JobSubmission-previewTags--outer">
|
||||||
<div class="JobSubmission-previewTags--inner">
|
<div class="JobSubmission-previewTags--inner">
|
||||||
<div class="JobSubmission-previewTagContainer" ng-show="selected_credentials.machine">
|
<div class="JobSubmission-previewTagContainer u-wordwrap" ng-show="selected_credentials.machine">
|
||||||
<div class="JobSubmission-previewTagContainerDelete" ng-click="deleteMachineCred()" ng-show="ask_credential_on_launch">
|
<div class="JobSubmission-previewTagContainerDelete" ng-click="deleteMachineCred()" ng-show="ask_credential_on_launch">
|
||||||
<i class="fa fa-times JobSubmission-previewTagContainerTagDelete"></i>
|
<i class="fa fa-times JobSubmission-previewTagContainerTagDelete"></i>
|
||||||
</div>
|
</div>
|
||||||
@@ -333,11 +333,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span ng-show="selected_credentials.machine" class="JobSubmission-previewItemSubTitle"><span translate>Machine</span>: </span>
|
<span ng-show="selected_credentials.machine" class="JobSubmission-previewItemSubTitle"><span translate>Machine</span>: </span>
|
||||||
<span ng-show="selected_credentials.machine">{{selected_credentials.machine.name}}</span>
|
<span class="u-wordwrap" ng-show="selected_credentials.machine">{{selected_credentials.machine.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div ng-repeat="extraCredential in selected_credentials.extra">
|
<div ng-repeat="extraCredential in selected_credentials.extra">
|
||||||
<span class="JobSubmission-previewItemSubTitle">{{credential_types[extraCredential.credential_type].name}}: </span>
|
<span class="JobSubmission-previewItemSubTitle">{{credential_types[extraCredential.credential_type].name}}: </span>
|
||||||
<span>{{extraCredential.name}}</span>
|
<span class="u-wordwrap">{{extraCredential.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span ng-show="selected_credentials.vault" class="JobSubmission-previewItemSubTitle"><span translate>Vault</span>: </span>
|
<span ng-show="selected_credentials.vault" class="JobSubmission-previewItemSubTitle"><span translate>Vault</span>: </span>
|
||||||
|
|||||||
10
awx/ui/client/src/shared/utilities/wordwrap.less
Normal file
10
awx/ui/client/src/shared/utilities/wordwrap.less
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
.u-wordwrap {
|
||||||
|
white-space: -moz-pre-wrap !important;
|
||||||
|
white-space: -webkit-pre-wrap;
|
||||||
|
white-space: -pre-wrap;
|
||||||
|
white-space: -o-pre-wrap;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
word-break: break-all;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
ng-binding">
|
ng-binding">
|
||||||
{{ tag.kind }}
|
{{ tag.kind }}
|
||||||
</span>
|
</span>
|
||||||
<span class="MultiCredential-name
|
<span class="MultiCredential-name u-wordwrap
|
||||||
ng-binding">
|
ng-binding">
|
||||||
{{ tag.name }}
|
{{ tag.name }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -2,18 +2,20 @@
|
|||||||
|
|
||||||
.MultiCredential-selectedBar {
|
.MultiCredential-selectedBar {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
background: @default-no-items-bord;
|
background: @default-no-items-bord;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
border: 1px solid @default-icon-hov;
|
border: 1px solid @default-icon-hov;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
max-height: 120px;
|
||||||
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.MultiCredential-selectedBarLabel {
|
.MultiCredential-selectedBarLabel {
|
||||||
margin-right: 20px;
|
align-self: center;
|
||||||
font-size: 12px;
|
margin-right: 20px;
|
||||||
color: @default-icon;
|
font-size: 12px;
|
||||||
|
color: @default-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
.MultiCredential-tags {
|
.MultiCredential-tags {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
ng-binding">
|
ng-binding">
|
||||||
{{ tag.kind }}
|
{{ tag.kind }}
|
||||||
</span>
|
</span>
|
||||||
<span class="MultiCredential-name ng-binding">
|
<span class="MultiCredential-name u-wordwrap ng-binding">
|
||||||
{{ tag.name }}
|
{{ tag.name }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user