mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fix #879 align multimedia search results to the left
This commit is contained in:
parent
73c09ce876
commit
c714c3629a
3 changed files with 6 additions and 6 deletions
|
|
@ -536,9 +536,9 @@ function _displayMultimedia(src, width, height, options) {
|
|||
height = parseInt(height, 10);
|
||||
|
||||
if(/\.(gif|jpg|jpeg|bmp|png)$/i.test(src)){
|
||||
html = '<img src="'+src+'" width="'+width+'" height="'+height+'" />';
|
||||
html = '<img src="'+src+'" width="'+width+'" height="'+height+'" class="thumb" />';
|
||||
} else {
|
||||
html = '<span style="display:inline-block;position:relative;background:black;width:' + width + 'px;height:' + height + 'px;border:0;margin:0;padding:0">';
|
||||
html = '<span style="position:relative;background:black;width:' + width + 'px;height:' + height + 'px" class="thumb">';
|
||||
html += '<img style="width:24px;height:24px;position:absolute;left:50%;top:50%;border:0;margin:-12px 0 0 -12px;padding:0" src="./common/img/play.png" alt="" />';
|
||||
html += '</span>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue