fix icon placement in editable device port cells
This commit is contained in:
@@ -158,9 +158,14 @@ div.content > div.tab-content table.nd_floatinghead thead {
|
|||||||
/* nudge cell content to the right when port_control controls are enabled */
|
/* nudge cell content to the right when port_control controls are enabled */
|
||||||
.nd_editable-cell > .nd_this-port-only {
|
.nd_editable-cell > .nd_this-port-only {
|
||||||
margin-left: 18px;
|
margin-left: 18px;
|
||||||
|
margin-right: 18px;
|
||||||
}
|
}
|
||||||
|
.nd_editable-cell > .nd_port-only-first {
|
||||||
|
margin-left: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
.nd_editable-cell > .nd_editable-cell-content {
|
.nd_editable-cell > .nd_editable-cell-content {
|
||||||
margin-left: 18px;
|
margin-right: 18px;
|
||||||
}
|
}
|
||||||
.table .nd_nudge-for-icon {
|
.table .nd_nudge-for-icon {
|
||||||
padding-left: 25px;
|
padding-left: 25px;
|
||||||
@@ -265,7 +270,7 @@ td > form.nd_inline-form {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: black;
|
color: black;
|
||||||
float: left;
|
float: left;
|
||||||
display: none;
|
visibility: hidden;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
.nd_log-icon:hover, .nd_log-icon:focus {
|
.nd_log-icon:hover, .nd_log-icon:focus {
|
||||||
|
|||||||
@@ -92,14 +92,16 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
// toggle visibility of port up/down and edit controls
|
// toggle visibility of port up/down and edit controls
|
||||||
$('.tab-content').on('mouseenter', '.nd_editable-cell', function() {
|
$('.tab-content').on('mouseenter', '.nd_editable-cell', function() {
|
||||||
$(this).children('.nd_hand-icon,.nd_log-icon').show();
|
$(this).children('.nd_hand-icon').show();
|
||||||
|
$(this).children('.nd_log-icon').css('visibility', 'visible');
|
||||||
if (! $(this).is(':focus')) {
|
if (! $(this).is(':focus')) {
|
||||||
$(this).children('.nd_edit-icon').show(); // ports
|
$(this).children('.nd_edit-icon').show(); // ports
|
||||||
$(this).siblings('td').find('.nd_device-details-edit').show(); // details
|
$(this).siblings('td').find('.nd_device-details-edit').show(); // details
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('.tab-content').on('mouseleave', '.nd_editable-cell', function() {
|
$('.tab-content').on('mouseleave', '.nd_editable-cell', function() {
|
||||||
$(this).children('.nd_hand-icon,.nd_log-icon').hide();
|
$(this).children('.nd_hand-icon').hide();
|
||||||
|
$(this).children('.nd_log-icon').css('visibility', 'hidden');
|
||||||
if (! $(this).is(':focus')) {
|
if (! $(this).is(':focus')) {
|
||||||
$(this).children('.nd_edit-icon').hide(); // ports
|
$(this).children('.nd_edit-icon').hide(); // ports
|
||||||
$(this).siblings('td').find('.nd_device-details-edit').hide(); // details
|
$(this).siblings('td').find('.nd_device-details-edit').hide(); // details
|
||||||
|
|||||||
@@ -75,11 +75,11 @@
|
|||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<td nowrap>
|
<td nowrap>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF row.is_master %]
|
<a class="nd_this-port-only nd_port-only-first" href="[% uri_for('/device',
|
||||||
<small><i class="icon-group muted"></i></small>
|
|
||||||
[% END %]
|
|
||||||
<a class="nd_this-port-only" href="[% uri_for('/device',
|
|
||||||
self_options) %]&q=[% params.q | uri %]&f=[% row.port | uri %]&prefer=port">
|
self_options) %]&q=[% params.q | uri %]&f=[% row.port | uri %]&prefer=port">
|
||||||
|
[% IF row.is_master %]
|
||||||
|
<small><i class="icon-group muted"></i></small>
|
||||||
|
[% END %]
|
||||||
[% row.port | html_entity %]</a>
|
[% row.port | html_entity %]</a>
|
||||||
[% IF row.slave_of %]<br/>
|
[% IF row.slave_of %]<br/>
|
||||||
<a class="nd_this-port-only" href="[% uri_for('/device',
|
<a class="nd_this-port-only" href="[% uri_for('/device',
|
||||||
|
|||||||
Reference in New Issue
Block a user