summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-17 15:12:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-17 15:12:59 +0900
commitf6b08145486364cb5c13e7f3aa3226e397cc3abe (patch)
treed6225497b00091f47e5c476d56d3a0cf22655b7a /src/client/app/common
parentローカルタイムラインとグローバルタイムラインを実装 (diff)
downloadmisskey-f6b08145486364cb5c13e7f3aa3226e397cc3abe.tar.gz
misskey-f6b08145486364cb5c13e7f3aa3226e397cc3abe.tar.bz2
misskey-f6b08145486364cb5c13e7f3aa3226e397cc3abe.zip
#1496
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/note-menu.vue16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue
index 06fe0dfd0c..877d2c16bb 100644
--- a/src/client/app/common/views/components/note-menu.vue
+++ b/src/client/app/common/views/components/note-menu.vue
@@ -3,6 +3,7 @@
<div class="backdrop" ref="backdrop" @click="close"></div>
<div class="popover" :class="{ compact }" ref="popover">
<button v-if="note.userId == os.i.id" @click="pin">%i18n:@pin%</button>
+ <a v-if="note.uri" :href="note.uri" target="_blank">%i18n:@remote%</a>
</div>
</div>
</template>
@@ -81,6 +82,8 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
+@import '~const.styl'
+
$border-color = rgba(27, 31, 35, 0.15)
.mk-note-menu
@@ -99,6 +102,7 @@ $border-color = rgba(27, 31, 35, 0.15)
> .popover
position absolute
z-index 10001
+ padding 8px 0
background #fff
border 1px solid $border-color
border-radius 4px
@@ -135,7 +139,17 @@ $border-color = rgba(27, 31, 35, 0.15)
border-bottom solid $balloon-size #fff
> button
+ > a
display block
- padding 16px
+ padding 8px 16px
+
+ &:hover
+ color $theme-color-foreground
+ background $theme-color
+ text-decoration none
+
+ &:active
+ color $theme-color-foreground
+ background darken($theme-color, 10%)
</style>