diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 21:09:35 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 21:09:35 +0900 |
| commit | a88e486468b53145d7745411db02fe507ddffb78 (patch) | |
| tree | 08d4726422ef4d30ccb67f3f8b5275e00f800707 /src/client/ui | |
| parent | Resolve #7425 (diff) | |
| download | misskey-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.vue | 4 |
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() { |