* improve UI for big screens.

This commit is contained in:
Catouse
2018-06-07 17:10:38 +08:00
parent 849fefb8b4
commit c79b608292
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ function initTableHeader()
var tableWidth = $table.width();
if(!$header.length)
{
$header = $('<div class="table-header-fixed" style="position: absolute; left: 0; top: 0; right: 0; padding: 10px 10px 0; background: #fff;"><table class="table table-fixed no-margin"></table></div>').css('right', $panel.width() - tableWidth - 20).css('min-width', tableWidth);
$header = $('<div class="table-header-fixed" style="position: absolute; left: 0; top: 0; right: 0; padding: 10px 10px 0; background: #fff;"><table class="table table-fixed no-margin"></table></div>').css('right', $panel.width() - tableWidth - 20);
var $oldTableHead = $table.find('thead');
$oldTableHead.find('th').each(function(idx)
{
@@ -102,7 +102,7 @@ function initTableHeader()
$header.on('mousedown mouseup', 'th[data-idx]', function(e)
{
var $th = $(this);
var $targetTh = $oldTableHead.find('th[data-idx="' + $th.data('idx') + '"]').trigger(e);
$oldTableHead.find('th[data-idx="' + $th.data('idx') + '"]').trigger(e);
if(e.type === 'mouseup')
{
var updateTh = function()
+1 -1
View File
@@ -363,7 +363,7 @@
echo "<div class='divider'></div>";
common::printIcon('story', 'edit', "storyID=$story->id", $story);
common::printIcon('story', 'create', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id", $story, 'button', 'copy', '', 'iframe showinonlybody');
common::printIcon('story', 'create', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id", $story, 'button', 'copy', '', 'iframe showinonlybody', true);
common::printIcon('story', 'delete', "storyID=$story->id", $story, 'button', '', 'hiddenwin');
?>
<?php endif;?>
File diff suppressed because one or more lines are too long