Skip to content

Commit

Permalink
Added Overflow Y, Altered layout so records are always visible (#1245)
Browse files Browse the repository at this point in the history
Adde3d overflow y because that was the only way to ensure the bottom of
the container is always visible and also remove some information that
was duplicated between to and bottom because both are now visible at the
same time
  • Loading branch information
MuchQuak authored May 8, 2024
1 parent 39a075e commit e3fb024
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions collections/editor/occurrencetabledisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
if(!is_numeric($occIndex)) $occIndex = 0;
$recStart = floor($occIndex/$recLimit)*$recLimit;
$recArr = $occManager->getOccurMap($recStart, $recLimit);
$navStr = '<div class="navpath" style="float:right;">';
$navStr = '<div class="navpath">';


if($recStart >= $recLimit){
Expand All @@ -106,6 +106,7 @@

$navStr .= '<a href="#" onclick="return submitQueryForm('.(floor($qryCnt/$recLimit) * $recLimit).');" title="'.(isset($LANG['LAST'])?$LANG['LAST']:'Last').' '.$recLimit.' '.(isset($LANG['RECORDS'])?$LANG['RECORDS']:'records').'">&gt;|</a>';
}
$navStr .= ' * ' . (isset($LANG['CLICK_ID'])?$LANG['CLICK_ID']:'Click on the Symbiota identifier in the first column to open the editor.');
$navStr .= '</div>';
}
else{
Expand Down Expand Up @@ -148,6 +149,12 @@ function () {
.fieldGroupDiv{ clear:both; margin-bottom: 1rem; overflow: auto}
.fieldDiv{ float:left; margin-right: 1rem;}
#innertext{ background-color: white; margin: 0px 10px; }

#record-viewer-innertext {
margin-left: 2em;
width: calc(100vw - 4em);
background-color: white;
}
.editimg{ width: 15px; }
.accessible-font {
font-size: 1.4em;
Expand All @@ -156,6 +163,8 @@ function () {
display: block;
white-space: nowrap;
overflow-x: scroll;
overflow-y: scroll;
height: 80vh;
}

.button-toggle {
Expand All @@ -178,7 +187,7 @@ function () {
</head>
<body style="margin-left: 0px; margin-right: 0px;background-color:white;">
<a class="screen-reader-only" href="#skip-search"><?php echo $LANG['SKIP_SEARCH'] ?></a>
<div id="innertext" style="max-width: 100vw">
<div id="record-viewer-innertext">
<h1 class="page-heading screen-reader-only">Occurrence Table Display</h1>
<?php
if(($isEditor || $crowdSourceMode)){
Expand Down Expand Up @@ -329,8 +338,9 @@ function () {
<?php
}
?>
<div style="width:850px;clear:both;">
<div style="display:flex;width:850px;clear:both;">
<?php echo $navStr; ?>

</div>
<?php
if($recArr){
Expand Down Expand Up @@ -390,10 +400,6 @@ function () {
<?php echo htmlspecialchars((isset($LANG['TABLE_VIEW_DESC']) ? $LANG['TABLE_VIEW_DESC'] : 'Table displays occurrence information with columns showing Symbiota ID, Family, Event Date, Author, Location, and other details'), ENT_COMPAT | ENT_HTML401 | ENT_SUBSTITUTE); ?>
</p>
</div>
<div style="width:790px;">
<?php echo $navStr; ?>
</div>
*<?php echo (isset($LANG['CLICK_ID'])?$LANG['CLICK_ID']:'Click on the Symbiota identifier in the first column to open the editor.'); ?>
<?php
}
else{
Expand Down

0 comments on commit e3fb024

Please sign in to comment.