Skip to content

Commit aafa7d7

Browse files
Merge pull request #829 from Adamant-im/fix/samsung-height
fix: style issues
2 parents 03199ab + f1b5510 commit aafa7d7

File tree

9 files changed

+26
-39
lines changed

9 files changed

+26
-39
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: 7 additions & 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>
6+
<v-main class="application--main">
77
<router-view />
88
</v-main>
99
</v-app>
@@ -85,15 +85,13 @@ setLocale()
8585
<style lang="scss" scoped>
8686
@use '@/assets/styles/themes/adamant/_mixins.scss';
8787
88-
.application--linear-gradient {
88+
.application--main {
8989
overflow: hidden;
90-
91-
&:deep(.v-application__wrap) {
92-
min-height: unset;
93-
margin-top: env(safe-area-inset-top);
94-
height: calc(100vh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
95-
height: calc(100dvh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
96-
}
90+
flex: none;
91+
position: relative;
92+
height: calc(100vh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
93+
height: calc(100dvh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
94+
margin-top: env(safe-area-inset-top);
9795
}
9896
9997
.v-theme--light.application--linear-gradient {

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/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/views/AppSidebar.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,22 @@ onBeforeUnmount(() => {
239239
max-width: 75%;
240240
user-select: none;
241241
242-
&::after {
242+
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
243+
border-right: none;
244+
}
245+
246+
&::after {
243247
content: '';
244248
position: absolute;
245249
right: 0;
246250
top: 0;
247251
width: 10px;
248252
height: 100%;
249253
cursor: ew-resize;
254+
255+
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
256+
content: none;
257+
}
250258
}
251259
252260
@media (max-width: map.get(variables.$breakpoints, 'mobile')) {
@@ -266,7 +274,7 @@ onBeforeUnmount(() => {
266274
flex: 1 1 auto;
267275
overflow-y: auto;
268276
overflow-x: hidden;
269-
height: calc(100vh - var(--v-layout-bottom));
277+
height: 100%;
270278
width: calc(100% - var(--asideWidth));
271279
272280
&:deep(> .v-container) {

src/views/SendFunds.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,4 @@ const onError = (message: string) => {
128128
})
129129
}
130130
</script>
131-
<style scoped lang="scss">
132-
.send-funds {
133-
position: relative;
134-
135-
&__content {
136-
overflow-y: auto;
137-
height: calc(100vh - var(--v-layout-bottom) - var(--toolbar-height));
138-
padding-top: var(--toolbar-height);
139-
}
140-
}
141-
</style>
131+

0 commit comments

Comments
 (0)