This commit fixes the following spacing issues that are found in the My Account
screens when loaded on a small-screen device:
* When a field has no value, the text in the table header, which displays along
the left, is cut off at the bottom. The Notes field on the Holds page is one
place where this issue is commonly seen. With the fix, the headers are slightly
out of alignment with the field data, but this is still an improvement over
cutting off text on the screen.
* If the only title(s) listed on the screen are short, requiring little width
in a table cell, the text in the table header runs into field data. A good
example in the Concerto data is if the user only has a check out for record ID
2 (Le concerto) on their account.
* The checkboxes in the Check Out History and Items on Hold screen were pushed
to the right. We fix it by giving the cells with a checkbox a "checkbox_column"
class, which was already in use by the checkbox on the Items Out screen.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
left: -9999px;
}
+ table#acct_checked_main_header, table#acct_holds_main_header, table#acct_checked_hist_header {
+ width: 90%;
+ }
+
table#acct_checked_main_header tr, table#acct_holds_main_header tr, table#acct_checked_hist_header tr { border: 1px solid #ddd; }
table#acct_checked_main_header td, table#acct_holds_main_header td, table#acct_checked_hist_header td {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
+ top: 2px;
left: 2px;
width: 40%;
padding-right: 10px;
title="[% l('History of Items Checked Out') %]">
<thead>
<tr>
- <th align="center">
+ <th class="checkbox_column">
<input type="checkbox" onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'circ_id' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
</th>
<th>[% sort_head("sort_title", l("Title")) %]</th>
FOR circ IN circ_items; %]
<tr>
- <td align="center" style="text-align:center;">
+ <td class="checkbox_column">
<input type="checkbox" name="circ_id" value="[% circ.circ.id %]" />
</td>
<td>
class="table_no_border_space table_no_cell_pad">
<thead>
<tr>
- <th align="center">
+ <th class="checkbox_column">
<input type="checkbox" title="[% l('Select All Holds') %]"
onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'hold_id' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
</th>
ahr = hold.hold.hold %]
<tr name="acct_holds_temp"
class="acct_holds_temp[% ahr.frozen == 't' ? ' inactive-hold' : '' %]">
- <td align="center" style="text-align:center;">
+ <td class="checkbox_column">
<input type="checkbox" name="hold_id" value="[% ahr.id %]"
[% html_text_attr('title', l('Select hold [_1]', attrs.title)) %]/>
</td>