mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-24 16:01:20 +01:00
refs #223 Add menu to open toot detail in browser
This commit is contained in:
parent
c91dc7fa89
commit
7a63f22caf
@ -46,6 +46,9 @@
|
||||
<li role="button" @click="openDetail(message)">
|
||||
View Toot Detail
|
||||
</li>
|
||||
<li role="button" @click="openBrowser(message)">
|
||||
Open in Browser
|
||||
</li>
|
||||
</ul>
|
||||
</popover>
|
||||
</div>
|
||||
@ -106,6 +109,9 @@ export default {
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/changeToot', message)
|
||||
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
|
||||
},
|
||||
openBrowser (message) {
|
||||
console.log(message)
|
||||
},
|
||||
changeReblog (message) {
|
||||
if (message.reblogged) {
|
||||
this.$store.dispatch('TimelineSpace/Contents/Cards/Toot/unreblog', message)
|
||||
@ -276,22 +282,18 @@ function findLink (target) {
|
||||
.toot-menu {
|
||||
padding: 0;
|
||||
font-size: 0.8em;
|
||||
margin-left: 0.5em;
|
||||
list-style-type: none;
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
|
||||
li {
|
||||
box-sizing: border-box;
|
||||
padding-left: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
||||
&:hover {
|
||||
background-color: #f2f6fc;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:last-child{
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user