From 5c497152980d7d9c597d9c18031f4be2e380cade Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 16 Nov 2019 13:36:16 +0900 Subject: [PATCH] Around bookmark --- app/css/tl.css | 3 ++- app/js/post/status.js | 5 +++++ app/js/tl/parse.js | 22 +++++++++++----------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/app/css/tl.css b/app/css/tl.css index b7841626..ed58612d 100644 --- a/app/css/tl.css +++ b/app/css/tl.css @@ -419,7 +419,7 @@ iframe, position: fixed; width: 199vw; height: 100vh; - z-index: 9998; + z-index: 100; } .contextMenu { position: fixed; @@ -447,6 +447,7 @@ iframe, .contextMenu .btn-flat { text-transform: none !important; width: 100%; + text-align: left; } .gray { diff --git a/app/js/post/status.js b/app/js/post/status.js index fa0b45ab..d60e0c57 100644 --- a/app/js/post/status.js +++ b/app/js/post/status.js @@ -632,6 +632,11 @@ function toggleAction(elem, height) { cont.removeClass('top') 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('right', `calc(100vw - ${left}px)`) cont.removeClass('hide') diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index 35b06b5e..edcf1fa7 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -1070,7 +1070,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
- more_vert + menu_open
@@ -1079,39 +1079,39 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { ${lang.lang_parse_clientop}
- ${bkmStr} - +
- ${lang.lang_parse_del} - +
- ${pinStr} - +
- redo${lang.lang_parse_redraft} - +
${trans}
- ${lang.lang_parse_link} - +