summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-09-22 21:42:07 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-09-22 21:42:07 +0900
commit61de9cdbd49dca2ef35954e783fa97fcd6d62882 (patch)
tree4816afa5113b8619cf7c62e14298d0cf99e93e1d /src
parentfeat(server): 管理者用アカウント削除API実装 (diff)
downloadsharkey-61de9cdbd49dca2ef35954e783fa97fcd6d62882.tar.gz
sharkey-61de9cdbd49dca2ef35954e783fa97fcd6d62882.tar.bz2
sharkey-61de9cdbd49dca2ef35954e783fa97fcd6d62882.zip
:art:
Diffstat (limited to 'src')
-rw-r--r--src/client/menu.ts21
-rw-r--r--src/client/ui/_common_/sidebar.vue11
2 files changed, 22 insertions, 10 deletions
diff --git a/src/client/menu.ts b/src/client/menu.ts
index 4929b64281..0a9e2b5475 100644
--- a/src/client/menu.ts
+++ b/src/client/menu.ts
@@ -90,7 +90,26 @@ export const menuDef = {
title: 'antennas',
icon: 'fas fa-satellite',
show: computed(() => $i != null),
- to: '/my/antennas',
+ active: computed(() => router.currentRoute.value.path.startsWith('/timeline/antenna/') || router.currentRoute.value.path === '/my/antennas' || router.currentRoute.value.path.startsWith('/my/antennas/')),
+ action: (ev) => {
+ const items = ref([{
+ type: 'pending'
+ }]);
+ os.api('antennas/list').then(antennas => {
+ const _items = [...antennas.map(antenna => ({
+ type: 'link',
+ text: antenna.name,
+ to: `/timeline/antenna/${antenna.id}`
+ })), null, {
+ type: 'link',
+ to: '/my/antennas',
+ text: i18n.locale.manageAntennas,
+ icon: 'fas fa-cog',
+ }];
+ items.value = _items;
+ });
+ os.popupMenu(items, ev.currentTarget || ev.target);
+ },
},
mentions: {
title: 'mentions',
diff --git a/src/client/ui/_common_/sidebar.vue b/src/client/ui/_common_/sidebar.vue
index 65f3d7dbdd..9817a46e30 100644
--- a/src/client/ui/_common_/sidebar.vue
+++ b/src/client/ui/_common_/sidebar.vue
@@ -263,7 +263,7 @@ export default defineComponent({
> .item {
padding-left: 0;
- padding: 10px 0;
+ padding: 18px 0;
width: 100%;
text-align: center;
font-size: $ui-font-size * 1.1;
@@ -280,14 +280,7 @@ export default defineComponent({
}
> .text {
- display: inline-block;
- font-size: 0.5em;
- line-height: initial;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- max-width: 100%;
- opacity: 0.7;
+ display: none;
}
&:hover, &.active {