Skip to content

Commit 2a5ceeb

Browse files
Merge pull request #833 from Adamant-im/dev
v4.10.5
2 parents 1a4486c + c40d358 commit 2a5ceeb

File tree

13 files changed

+54
-24
lines changed

13 files changed

+54
-24
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "im.adamant.adamantmessengerpwa"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
10-
versionCode 4104
11-
versionName "4.10.4"
10+
versionCode 4105
11+
versionName "4.10.5"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
aaptOptions {
1414
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adamant-im",
3-
"version": "4.10.4",
3+
"version": "4.10.5",
44
"type": "module",
55
"author": "ADAMANT Foundation <devs@adamant.im>",
66
"license": "GPLv3",

src/App.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<UploadAttachmentExitPrompt />
44
<warning-on-addresses-dialog v-model="showWarningOnAddressesDialog" />
55

6-
<v-main class="application--main">
6+
<v-main>
77
<router-view />
88
</v-main>
99
</v-app>
@@ -85,14 +85,6 @@ setLocale()
8585
<style lang="scss" scoped>
8686
@use '@/assets/styles/themes/adamant/_mixins.scss';
8787
88-
.application--main {
89-
flex: none;
90-
position: relative;
91-
height: calc(100vh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
92-
height: calc(100dvh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
93-
margin-top: env(safe-area-inset-top);
94-
}
95-
9688
.v-theme--light.application--linear-gradient {
9789
@include mixins.linear-gradient-light();
9890
}

src/assets/styles/components/_chat.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,19 @@ $scroll-bar-width: 4px;
2323
.a-chat {
2424
display: block;
2525
text-decoration: none;
26-
height: 100%;
26+
height: 100%; // <-- Fallback for Chrome < v108
27+
// Chrome supports `dvh, lvh...` units starting with v108.
28+
// See https://caniuse.com/viewport-unit-variants
29+
height: calc(100dvh - var(--v-layout-bottom));
2730
position: relative;
2831

2932
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
3033
position: fixed;
3134
left: 0;
3235
right: 0;
3336
bottom: env(safe-area-inset-bottom);
37+
top: env(safe-area-inset-top);
38+
height: calc(100dvh - var(--v-layout-bottom) - env(safe-area-inset-bottom) - env(safe-area-inset-top));
3439
}
3540

3641
&__content {

src/components/AppNavigation.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ onMounted(() => {
9191
@use 'sass:map';
9292
@use '@/assets/styles/settings/_colors.scss';
9393
@use 'vuetify/settings';
94+
@use '@/assets/styles/generic/_variables.scss';
9495
9596
/**
9697
* 1. Navigation Button.
@@ -101,6 +102,10 @@ onMounted(() => {
101102
&.v-bottom-navigation {
102103
transform: unset !important;
103104
overflow: visible;
105+
106+
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
107+
bottom: calc(0px + env(safe-area-inset-bottom)) !important;
108+
}
104109
}
105110
&.v-bottom-navigation .v-btn {
106111
font-weight: 300;

src/components/Chat/Chat.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ const onKeyPress = (e: KeyboardEvent) => {
949949
margin-right: 8px;
950950
}
951951
.chat {
952-
height: 100%;
952+
height: calc(100vh - var(--v-layout-bottom));
953953
box-shadow: none;
954954
background-color: transparent !important;
955955
}

src/components/Chat/Chats.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@ const markAllAsRead = () => {
291291
@use 'sass:map';
292292
@use '@/assets/styles/settings/_colors.scss';
293293
@use 'vuetify/settings';
294+
@use '@/assets/styles/generic/_variables.scss';
294295
295296
.chats-view {
297+
margin-top: env(safe-area-inset-top);
296298
height: 100%;
297299
298300
&.a-container,
@@ -331,6 +333,10 @@ const markAllAsRead = () => {
331333
}
332334
&__messages {
333335
&.chats-view__messages--chat {
336+
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
337+
max-height: calc(100vh - 56px - var(--v-layout-bottom) - env(safe-area-inset-bottom) - env(safe-area-inset-top));
338+
}
339+
334340
max-height: calc(100vh - 56px - var(--v-layout-bottom));
335341
overflow-y: auto;
336342
}

src/components/transactions/TransactionTemplate.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,13 @@ const formatAmount = (amount: number, decimals = CryptosInfo[props.crypto].decim
369369
@use '@/assets/styles/settings/_colors.scss';
370370
371371
.transaction-view {
372+
position: relative;
373+
374+
&__content {
375+
overflow-y: auto;
376+
height: calc(100vh - var(--v-layout-bottom) - var(--toolbar-height));
377+
padding-top: var(--toolbar-height);
378+
}
372379
373380
&__titlecontent {
374381
flex: 1 0 auto;

src/layouts/no-container.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<slot />
33

44
<app-snackbar />
5-
<app-navigation v-if="showNavigation" absolute />
5+
<app-navigation v-if="showNavigation" />
66
</template>
77

88
<script setup lang="ts">

0 commit comments

Comments
 (0)