Skip to content

Commit f1da832

Browse files
committed
Add feedback button
1 parent 38f880a commit f1da832

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ buildscript {
1717
}
1818

1919
plugins {
20-
id 'com.android.application' version '8.7.2' apply false
21-
id 'com.android.library' version '8.7.2' apply false
20+
id 'com.android.application' version '8.7.3' apply false
21+
id 'com.android.library' version '8.7.3' apply false
2222
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
2323
}
2424

web/layouts/default.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<template>
22
<v-app>
3+
<v-btn
4+
v-if="$vuetify.breakpoint.lgAndUp"
5+
class="feedback-btn"
6+
href="https://httpsms.featurebase.app"
7+
color="#82a865"
8+
flat
9+
large
10+
>
11+
<v-icon left>{{ mdiBullhorn }}</v-icon>
12+
Feedback
13+
</v-btn>
314
<v-divider v-if="$store.getters.isLocal" class="py-1 warning"></v-divider>
415
<v-navigation-drawer
516
v-if="$vuetify.breakpoint.lgAndUp && hasDrawer"
@@ -28,11 +39,13 @@
2839

2940
<script lang="ts">
3041
import { Vue, Component } from 'vue-property-decorator'
42+
import { mdiBullhorn } from '@mdi/js'
3143
import { setAuthHeader } from '~/plugins/axios'
3244
3345
@Component
3446
export default class DefaultLayout extends Vue {
3547
poller: number | null = null
48+
mdiBullhorn: string = mdiBullhorn
3649
3750
get hasDrawer(): boolean {
3851
return ['threads', 'threads-id'].includes(this.$route.name ?? '')
@@ -129,4 +142,19 @@ export default class DefaultLayout extends Vue {
129142
font-size: 16px;
130143
}
131144
}
145+
146+
.feedback-btn {
147+
position: fixed;
148+
z-index: 15;
149+
right: -56px;
150+
margin: 0;
151+
top: 45%;
152+
border-bottom-left-radius: 0;
153+
border-bottom-right-radius: 0;
154+
transform: rotate(-90deg);
155+
-moz-transform: rotate(-90deg);
156+
-ms-transform: rotate(-90deg);
157+
-o-transform: rotate(-90deg);
158+
-webkit-transform: rotate(-90deg);
159+
}
132160
</style>

0 commit comments

Comments
 (0)