summaryrefslogtreecommitdiff
path: root/src/client/ui
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-11 21:09:35 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-04-11 21:09:35 +0900
commita88e486468b53145d7745411db02fe507ddffb78 (patch)
tree08d4726422ef4d30ccb67f3f8b5275e00f800707 /src/client/ui
parentResolve #7425 (diff)
downloadmisskey-a88e486468b53145d7745411db02fe507ddffb78.tar.gz
misskey-a88e486468b53145d7745411db02fe507ddffb78.tar.bz2
misskey-a88e486468b53145d7745411db02fe507ddffb78.zip
Tweak UI
Diffstat (limited to 'src/client/ui')
-rw-r--r--src/client/ui/default.sidebar.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/ui/default.sidebar.vue b/src/client/ui/default.sidebar.vue
index 710a9b1f85..6323393f22 100644
--- a/src/client/ui/default.sidebar.vue
+++ b/src/client/ui/default.sidebar.vue
@@ -27,7 +27,7 @@
<Fa :icon="faEllipsisH" fixed-width/><span class="text">{{ $ts.more }}</span>
<i v-if="otherNavItemIndicated"><Fa :icon="faCircle"/></i>
</button>
- <MkA class="item" active-class="active" to="/settings">
+ <MkA class="item" active-class="active" to="/settings" :behavior="settingsWindowed ? 'modalWindow' : null">
<Fa :icon="faCog" fixed-width/><span class="text">{{ $ts.settings }}</span>
</MkA>
</div>
@@ -57,6 +57,7 @@ export default defineComponent({
connection: null,
menuDef: sidebarDef,
iconOnly: false,
+ settingsWindowed: false,
faGripVertical, faChevronLeft, faComments, faHashtag, faBroadcastTower, faFireAlt, faEllipsisH, faPencilAlt, faBars, faTimes, faBell, faSearch, faUserCog, faCog, faUser, faHome, faStar, faCircle, faAt, faEnvelope, faListUl, faPlus, faUserClock, faLaugh, faUsers, faTachometerAlt, faExchangeAlt, faGlobe, faChartBar, faCloud, faServer, faProjectDiagram
};
},
@@ -102,6 +103,7 @@ export default defineComponent({
methods: {
calcViewState() {
this.iconOnly = (window.innerWidth <= 1400) || (this.$store.state.sidebarDisplay === 'icon');
+ this.settingsWindowed = (window.innerWidth > 1400);
},
post() {