minor tweak, tooltip style

This commit is contained in:
Codenift 2020-03-13 03:24:43 -04:00
parent 4002c4ee05
commit 73da7f6f8d
2 changed files with 48 additions and 25 deletions

View File

@ -148,16 +148,15 @@ td.library_track_type
} }
.library_track_type_btn { .library_track_type_btn {
float: left; font-weight: 600;
font-weight: bold; font-size: 13px;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 2px; border-radius: 1px;
padding: 0px !important; margin: 5px 6px !important;
margin: 0px !important; line-height: 13px !important;
margin-right: 6px !important; padding: 5px 6px !important;
line-height: 17px !important;
padding: 3px !important;
} }
.library_track_type_btn:hover { .library_track_type_btn:hover {
@ -171,9 +170,15 @@ tr.lib-selected > td > div.library_track_type_btn:hover {
color: #eee; color: #eee;
} }
.track-type-tip{ .track-type-tip{
margin-left: -50px; overflow: visible;
margin-top: -68px; overflow-y: visible;
z-index: 1000 !important; margin-left: -30px;
margin-top: -61px;
z-index: 10000 !important;
}
.track-type-tip.qtip-pos-tl{
color: #000;
} }
.library_import { .library_import {

View File

@ -778,19 +778,37 @@ var AIRTIME = (function(AIRTIME) {
if(value['code'] == aData.track_type){ if(value['code'] == aData.track_type){
$("#au_"+aData.id+" td.library_track_type div.library_track_type_btn").qtip({ $("#au_"+aData.id+" td.library_track_type div.library_track_type_btn").qtip({
content: { overwrite: false,
text: value['type_name'] content: {
}, text: value['type_name']
style: { },
classes: 'track-type-tip' style: {
}, classes: 'track-type-tip',
show: { widget: true,
ready: true def: false,
}, position: {
hide: { target: $("#au_"+aData.id+" td.library_track_type"), // my target
distance: 30, my: 'bottom center',
fixed: true, at: 'top center',
} adjust: {
x: 50
}
},
tip: {
height: 5,
width: 12,
corner: 'bottom left',
mimic: 'left'
}
},
show: {
ready: true
},
hide: {
distance: 30,
delay: 200,
fixed: true,
}
}); });
type_enabled = true; type_enabled = true;