Skip to content

Commit

Permalink
Prevent overlapping description in medium sized mobile views (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer authored and Michael Howitz committed Feb 9, 2019
1 parent 081991c commit b92ba17
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ Fixes

- Don't error out when showing permissions for a non-existent user
(`#437 <https://github.com/zopefoundation/Zope/issues/437>`_)

- Fix ZMI listing view for narrow displays.
(`#471 <https://github.com/zopefoundation/Zope/pull/471>`_)

Other changes
+++++++++++++
Expand Down
23 changes: 11 additions & 12 deletions src/zmi/styles/resources/zmi_base.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ a:hover {
color:rgba(108, 117, 125, .5) !important;
}

.zmi a.btn.btn-primary,
.zmi a.btn.btn-primary,
.zmi input.btn.btn-primary {
background-color:white !important;
color:#6c757d;
Expand Down Expand Up @@ -164,9 +164,14 @@ form.zmi-upload {
}
.zmi table.objectItems th.zmi-object-id {
width:100%;
}
}
.zmi table.objectItems tbody .zmi-object-id {
font-weight: 600;
max-width: calc(100vw - 340px);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: silver;
}
.zmi table.objectItems .zmi-object-id #tablefilter {
padding:0 1.5em;
Expand All @@ -192,12 +197,6 @@ form.zmi-upload {
.zmi table.objectItems .zmi-object-title {
font-weight: 400;
opacity:.5;
position: absolute;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
max-width: 60%;
padding-left: .25em;
}
.zmi table.objectItems .zmi-object-type {
max-width:3rem;
Expand Down Expand Up @@ -684,7 +683,7 @@ header.navbar ul.navbar-nav li.zmi-addItemSelect select.form-control-sm:not([dis
}
.zmi nav[role="navigation"] .nav-tabs {
display:block;
list-style: none;
list-style: none;
padding:1rem;
border-bottom:0;
height: calc(100vh - 42px);
Expand All @@ -703,9 +702,9 @@ header.navbar ul.navbar-nav li.zmi-addItemSelect select.form-control-sm:not([dis
margin-bottom: 0;
}
.zmi table#zmi-db_info tbody tr td {
display:block;
display:block;
padding:.2rem .75rem .5rem
}
}
.zmi table#zmi-db_cache tbody tr td:nth-child(1) {
color: black;
}
Expand Down Expand Up @@ -844,7 +843,7 @@ header.navbar select.form-control-sm,
background-size:97%;
background-position: bottom center;
background-repeat:no-repeat;

}
}
/* EXAMPLE: IMPLANT YOUR LOGO */
Expand Down

0 comments on commit b92ba17

Please sign in to comment.