Skip to content

Commit

Permalink
polish upload for license html file
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynn Dai committed Aug 4, 2021
1 parent 67b2620 commit 3e8b02a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/Bootstrap/less/theme/common-licenses.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@
.custom-license-container {
margin-bottom: @default-margin-bottom;
}

.LicenseFile-container{
display: block;
padding: 10.5px;
background-color: @pre-bg;
border: 1px solid #ccc;
word-break: normal;
margin-bottom: @default-margin-bottom;
overflow: auto;
max-height: 450px;
}
}
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Packages/_VerifyMetadata.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<div class="verify-package-field common-licenses">
<label class="verify-package-field-heading">License file</label>
<!-- ko if: $data.LicenseFileContentsHtml -->
<span data-bind="html: $data.LicenseFileContentsHtml"></span>
<div class="license-html-file-container data-bind="html: $data.LicenseFileContentsHtml"></div>
<!-- /ko -->
<!-- ko ifnot: $data.LicenseFileContentsHtml -->
<pre class="license-file-contents custom-license-container" data-bind="text: $data.LicenseFileContents"></pre>
Expand Down

0 comments on commit 3e8b02a

Please sign in to comment.