Fix handling of large <pre>s in repository descriptions

Fixes #1474
This commit is contained in:
Joseph Schorr 2016-05-23 17:37:11 -04:00
parent fa3b342901
commit d3d767b4cd
2 changed files with 61 additions and 35 deletions

View file

@ -1,8 +1,3 @@
.repo-panel-info-element .right-controls {
margin-bottom: 20px;
float: right;
}
.repo-panel-info-element .right-sec-controls {
border: 1px solid #ddd;
padding: 20px;
@ -49,7 +44,11 @@
margin-top: 20px;
}
.repo-panel-info-element .right-controls .copy-box {
.repo-panel-info-element .right-pull-controls {
margin-bottom: 20px;
}
.repo-panel-info-element .right-pull-controls .copy-box {
width: 400px;
margin-top: 10px;
margin-bottom: 20px;
@ -87,16 +86,41 @@
padding-top: 18px;
}
.repo-panel-info-element .description-container table {
width: 100%;
}
.repo-panel-info-element .description-container table td {
vertical-align: top;
}
.repo-panel-info-element .description-container table td:first-child {
width: 100%;
padding: 10px;
padding-right: 30px;
}
.repo-panel-info-element .description-container table td:first-child p {
display: block;
}
.repo-panel-info-element .description-container table td:first-child pre {
max-width: 100%;
}
.repo-panel-info-element .description {
padding-bottom: 0px;
position: relative;
margin-right: 410px;
}
@media (max-width: 767px) {
.repo-panel-info-element .description {
margin-right: 0px;
}
.repo-panel-info-element .description-container table td:first-child {
padding: 6px;
}
}
.repo-panel-info-element .description p {