Skip to content

Commit

Permalink
polish upload for license html file2
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynn Dai committed Aug 4, 2021
1 parent 3e8b02a commit 20ffb00
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/Bootstrap/dist/css/bootstrap-theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/Bootstrap/less/theme/common-licenses.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
word-break: normal;
}

.custom-license-container {
.custom-license-container, .license-file-html-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;
}

.LicenseFile-container{
Expand Down
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 -->
<div class="license-html-file-container data-bind="html: $data.LicenseFileContentsHtml"></div>
<span class="license-file-html-container" data-bind="html: $data.LicenseFileContentsHtml"></span>
<!-- /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 20ffb00

Please sign in to comment.