Skip to content

Commit

Permalink
fix(frontend): 네비게이션 메뉴의 하단 프로필 영역이 잘못된 디자인으로 표시됨
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Oct 27, 2023
1 parent 2028181 commit a485fa3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE
- 특정 조건에서 헤더의 왼쪽에 여백이 발생할 수 있음
- 일부 페이지에서 잘못된 디자인이 표시됨
- 일부 페이지에서 액션 항목이 존재해도 버튼이 표시되지 않을 수 있음
- Fix: 네비게이션 메뉴의 하단 프로필 영역이 잘못된 디자인으로 표시됨

### Server
- Feat: 연합에서 노트 수정이 반영됨 (libnare/cp-castella#1)
Expand Down
19 changes: 13 additions & 6 deletions packages/frontend/src/ui/_common_/navbar-for-mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<button v-vibrate="ColdDeviceStorage.get('vibrateSystem') ? 5 : ''" class="_button" :class="$style.post" data-cy-open-post-form @click="os.post">
<i :class="[$style.postIcon, defaultStore.state.renameTheButtonInPostFormToNya ? 'ti-paw-filled' : 'ti-pencil']" class="ti ti-fw"></i><span style="position: relative;">{{ defaultStore.state.renameTheButtonInPostFormToNya ? i18n.ts.nya : i18n.ts.note }}</span>
</button>
<button v-vibrate="ColdDeviceStorage.get('vibrateSystem') ? 5 : ''" class="_button" :class="$style.account" @click="openAccountMenu">
<MkAvatar :user="$i" :class="$style.avatar"/><MkAcct :class="$style.acct" class="_nowrap" :user="$i"/>
</button>
<div :class="$style.profile">
<button v-vibrate="ColdDeviceStorage.get('vibrateSystem') ? 5 : ''" class="_button" :class="$style.account" @click="openAccountMenu">
<MkAvatar :user="$i" :class="$style.avatar"/><MkAcct :class="$style.acct" class="_nowrap" :user="$i"/>
</button>
</div>
</div>
</div>
</template>
Expand Down Expand Up @@ -108,6 +110,7 @@ function more() {
.root {
display: flex;
flex-direction: column;
height: 100%;
}

.top {
Expand Down Expand Up @@ -159,7 +162,7 @@ function more() {
.bottom {
position: sticky;
bottom: 0;
padding: 20px 0;
padding: 20px 0 calc(env(safe-area-inset-bottom) + 25px);
background: var(--X14);
-webkit-backdrop-filter: var(--blur, blur(8px));
backdrop-filter: var(--blur, blur(8px));
Expand Down Expand Up @@ -204,6 +207,11 @@ function more() {
width: 32px;
}

.profile {
display: flex;
margin-top: 16px;
}

.account {
position: relative;
display: flex;
Expand All @@ -213,7 +221,6 @@ function more() {
width: 100%;
text-align: left;
box-sizing: border-box;
margin-top: 16px;
}

.avatar {
Expand Down Expand Up @@ -293,7 +300,7 @@ function more() {
top: 0;
left: 20px;
color: var(--navIndicator);
font-size: 8px;
font-size: 6px;
animation: blink 1s infinite;

&:has(.itemIndicateValueIcon) {
Expand Down

0 comments on commit a485fa3

Please sign in to comment.