Around bookmark
This commit is contained in:
parent
2b3feb40ad
commit
5c49715298
|
@ -419,7 +419,7 @@ iframe,
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 199vw;
|
width: 199vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
z-index: 9998;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.contextMenu {
|
.contextMenu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -447,6 +447,7 @@ iframe,
|
||||||
.contextMenu .btn-flat {
|
.contextMenu .btn-flat {
|
||||||
text-transform: none !important;
|
text-transform: none !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gray {
|
.gray {
|
||||||
|
|
|
@ -632,6 +632,11 @@ function toggleAction(elem, height) {
|
||||||
cont.removeClass('top')
|
cont.removeClass('top')
|
||||||
cont.addClass('bottom')
|
cont.addClass('bottom')
|
||||||
}
|
}
|
||||||
|
if(elem.parents('.cvo').attr('id') == 'toot-this'){
|
||||||
|
console.log($('#toot-this').offset().top, elem.offset().top)
|
||||||
|
left = $('#toot-this').offset().left + elem.offset().left + 10
|
||||||
|
top = $('#toot-this').offset().top - $('#toot-this').height() -height + 25
|
||||||
|
}
|
||||||
cont.css('top', top + 'px')
|
cont.css('top', top + 'px')
|
||||||
cont.css('right', `calc(100vw - ${left}px)`)
|
cont.css('right', `calc(100vw - ${left}px)`)
|
||||||
cont.removeClass('hide')
|
cont.removeClass('hide')
|
||||||
|
|
|
@ -1070,7 +1070,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
||||||
<div class="action ${noauth}">
|
<div class="action ${noauth}">
|
||||||
<a onclick="details('${toot.id}','${acct_id}','${tlid}','normal')"
|
<a onclick="details('${toot.id}','${acct_id}','${tlid}','normal')"
|
||||||
class="waves-effect waves-dark btn-flat details ${dmHide}" style="padding:0">
|
class="waves-effect waves-dark btn-flat details ${dmHide}" style="padding:0">
|
||||||
<i class="text-darken-3 material-icons">more_vert</i></a>
|
<i class="text-darken-3 material-icons">menu_open</i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="contextMenu hide z-depth-4">
|
<div class="contextMenu hide z-depth-4">
|
||||||
|
@ -1079,39 +1079,39 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
||||||
<a onclick="client('${$.strip_tags(via)}')" class="pointer">${lang.lang_parse_clientop}</a>
|
<a onclick="client('${$.strip_tags(via)}')" class="pointer">${lang.lang_parse_clientop}</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a onclick="bkm('${toot.id}','${acct_id}','${tlid}')"
|
<button onclick="bkm('${toot.id}','${acct_id}','${tlid}')"
|
||||||
class="waves-effect waves-dark btn-flat actct bkm-btn" style="padding:0">
|
class="waves-effect waves-dark btn-flat actct bkm-btn" style="padding:0">
|
||||||
<i class="fas text-darken-3 fa-bookmark bkm_${toot.id} ${if_bkm}"></i>
|
<i class="fas text-darken-3 fa-bookmark bkm_${toot.id} ${if_bkm}"></i>
|
||||||
<span class="bkmStr_${toot.id}">${bkmStr}</span>
|
<span class="bkmStr_${toot.id}">${bkmStr}</span>
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="${if_mine}">
|
<div class="${if_mine}">
|
||||||
<a onclick="del('${toot.id}','${acct_id}')" class="waves-effect waves-dark btn-flat actct"
|
<button onclick="del('${toot.id}','${acct_id}')" class="waves-effect waves-dark btn-flat actct"
|
||||||
style="padding:0">
|
style="padding:0">
|
||||||
<i class="fas fa-trash"></i>${lang.lang_parse_del}
|
<i class="fas fa-trash"></i>${lang.lang_parse_del}
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="${if_mine}">
|
<div class="${if_mine}">
|
||||||
<a onclick="pin('${
|
<button onclick="pin('${
|
||||||
toot.id
|
toot.id
|
||||||
}','${acct_id}')" class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
}','${acct_id}')" class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
||||||
<i class="fas fa-map-pin pin_${toot.id} ${if_pin}"></i>
|
<i class="fas fa-map-pin pin_${toot.id} ${if_pin}"></i>
|
||||||
<span class="pinStr_${toot.id}">${pinStr}</span>
|
<span class="pinStr_${toot.id}">${pinStr}</span>
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="${if_mine}">
|
<div class="${if_mine}">
|
||||||
<a onclick="redraft('${toot.id}','${acct_id}')" class="waves-effect waves-dark btn-flat actct"
|
<button onclick="redraft('${toot.id}','${acct_id}')" class="waves-effect waves-dark btn-flat actct"
|
||||||
style="padding:0">
|
style="padding:0">
|
||||||
<i class="material-icons">redo</i>${lang.lang_parse_redraft}
|
<i class="material-icons">redo</i>${lang.lang_parse_redraft}
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
${trans}
|
${trans}
|
||||||
<div>
|
<div>
|
||||||
<a onclick="postMessage(['openUrl', '${toot.url}'], '*')"
|
<button onclick="postMessage(['openUrl', '${toot.url}'], '*')"
|
||||||
class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
||||||
<i class="fas text-darken-3 fa-globe"></i>
|
<i class="fas text-darken-3 fa-globe"></i>
|
||||||
${lang.lang_parse_link}
|
${lang.lang_parse_link}
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user