portals-list: move style for fixing width of portal names to the rest of it
cleans things up, and done to understand why mobile is an issue
This commit is contained in:
parent
3c8c03e9e5
commit
64d056bb8b
@ -395,7 +395,7 @@ window.plugin.portalslist.getPortalLink = function(portal,guid) {
|
|||||||
onClick: jsSingleClick,
|
onClick: jsSingleClick,
|
||||||
onDblClick: jsDoubleClick
|
onDblClick: jsDoubleClick
|
||||||
})[0].outerHTML;
|
})[0].outerHTML;
|
||||||
var div = '<div style="max-height: 15px !important; min-width:140px !important;max-width:180px !important; overflow: hidden; text-overflow:ellipsis;">'+a+'</div>';
|
var div = '<div class="portalTitle">'+a+'</div>';
|
||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -416,6 +416,7 @@ var setup = function() {
|
|||||||
$('#toolbox').append(' <a onclick="window.plugin.portalslist.displayPL()" title="Display a list of portals in the current view">Portals list</a>');
|
$('#toolbox').append(' <a onclick="window.plugin.portalslist.displayPL()" title="Display a list of portals in the current view">Portals list</a>');
|
||||||
$('head').append('<style>' +
|
$('head').append('<style>' +
|
||||||
//style.css sets dialog max-width to 700px - override that here
|
//style.css sets dialog max-width to 700px - override that here
|
||||||
|
// (the width: 800 parameter to dialog is NOT enough to override that css limit)
|
||||||
'#dialog-portal-list {max-width: 800px !important;}' +
|
'#dialog-portal-list {max-width: 800px !important;}' +
|
||||||
'#portalslist table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +
|
'#portalslist table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +
|
||||||
'#portalslist table td, #portalslist table th {border-bottom: 1px solid #0b314e; padding:3px; color:white; background-color:#1b415e}' +
|
'#portalslist table td, #portalslist table th {border-bottom: 1px solid #0b314e; padding:3px; color:white; background-color:#1b415e}' +
|
||||||
@ -441,6 +442,7 @@ var setup = function() {
|
|||||||
'#portalslist .filterRes { margin-top: 10px; background-color: #005684 }' +
|
'#portalslist .filterRes { margin-top: 10px; background-color: #005684 }' +
|
||||||
'#portalslist .filterEnl { margin-top: 10px; background-color: #017f01 }' +
|
'#portalslist .filterEnl { margin-top: 10px; background-color: #017f01 }' +
|
||||||
'#portalslist .disclaimer { margin-top: 10px; font-size:10px; }' +
|
'#portalslist .disclaimer { margin-top: 10px; font-size:10px; }' +
|
||||||
|
'#portalslist .portalTitle { width: 160px !important; min-width: 160px !important; max-width: 160px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }' +
|
||||||
'</style>');
|
'</style>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user