diff --git a/app/css/tl.css b/app/css/tl.css index ff0b237d..dc1b07a4 100644 --- a/app/css/tl.css +++ b/app/css/tl.css @@ -451,48 +451,12 @@ iframe, .action .fa-quote-right { margin-top: 0.15rem; } -.actct { - color: var(--beforehover); +.contextMenu.dropdown-content { + padding-top: 5px; + overflow-y: hidden; + left: calc(100% - 200px) !important; + width: 200px !important; } -.actct:hover { - color: var(--color); - transition: 0.5s; -} -#contextWrap { - position: fixed; - width: 199vw; - height: 100vh; - z-index: 100; -} -.contextMenu { - position: fixed; - background-color: var(--box); - z-index: 9999; - border-radius: 0.4rem; - padding: 0.4rem; -} -.contextMenu.bottom:before { - content: ''; - position: absolute; - top: 100%; - right: 2rem; - border: 1.2rem solid transparent; - border-top: 1.2rem solid var(--box); -} -.contextMenu.top:before { - content: ''; - position: absolute; - top: -2.3rem; - right: 2rem; - border: 1.5rem solid transparent; - border-bottom: 1.5rem solid var(--box); -} -.contextMenu .btn-flat { - text-transform: none !important; - width: 100%; - text-align: left; -} - .gray { color: var(--gray); } diff --git a/app/js/post/status.js b/app/js/post/status.js index 49e651f5..85a120b3 100644 --- a/app/js/post/status.js +++ b/app/js/post/status.js @@ -680,7 +680,11 @@ function staEx(mode) { }) return } -function toggleAction(elem, ct) { +function toggleAction(id) { + console.log(document.getElementById(id)) + var instance = M.Dropdown.init(document.getElementById(id)); + instance.open() + return var height = ct * 39 + 6 var cont = elem.parents('.cvo').find('.contextMenu') if (cont.hasClass('hide')) { diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index 67d99375..15fc668b 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -901,12 +901,10 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } //日本語じゃない if (toot.language != lang.language && toot.language) { - var trans = `
` + ` } else { var trans = '' } @@ -1132,8 +1130,8 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {