Skip to content

Commit 1a4486c

Browse files
Merge pull request #828 from Adamant-im/dev
Fix samsung height
2 parents f100059 + fe681df commit 1a4486c

File tree

12 files changed

+34
-35
lines changed

12 files changed

+34
-35
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 4103
11-
versionName "4.10.3"
10+
versionCode 4104
11+
versionName "4.10.4"
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.3",
3+
"version": "4.10.4",
44
"type": "module",
55
"author": "ADAMANT Foundation <devs@adamant.im>",
66
"license": "GPLv3",

src/App.vue

Lines changed: 9 additions & 1 deletion
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>
6+
<v-main class="application--main">
77
<router-view />
88
</v-main>
99
</v-app>
@@ -85,6 +85,14 @@ 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+
8896
.v-theme--light.application--linear-gradient {
8997
@include mixins.linear-gradient-light();
9098
}

src/assets/styles/components/_chat.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ $scroll-bar-width: 4px;
2323
.a-chat {
2424
display: block;
2525
text-decoration: none;
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));
26+
height: 100%;
3027
position: relative;
3128

3229
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
3330
position: fixed;
3431
left: 0;
3532
right: 0;
33+
bottom: env(safe-area-inset-bottom);
3634
}
3735

3836
&__content {

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: calc(100vh - var(--v-layout-bottom));
952+
height: 100%;
953953
box-shadow: none;
954954
background-color: transparent !important;
955955
}

src/components/Chat/Chats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const loadChatsPaged = async () => {
256256
257257
loading.value = true
258258
try {
259-
await store.dispatch('chat/loadChatsPages')
259+
await store.dispatch('chat/loadChatsPaged')
260260
loading.value = false
261261
allowRetry.value = false
262262
} catch (err: unknown) {

src/components/transactions/TransactionTemplate.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,6 @@ 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-
}
379372
380373
&__titlecontent {
381374
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" />
5+
<app-navigation v-if="showNavigation" absolute />
66
</template>
77

88
<script setup lang="ts">

src/layouts/toolbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<slot />
1010
</v-container>
1111
<app-snackbar />
12-
<app-navigation v-if="showNavigation" />
12+
<app-navigation v-if="showNavigation" absolute />
1313
</template>
1414

1515
<script setup lang="ts">

0 commit comments

Comments
 (0)