Skip to content

Commit 492bd0b

Browse files
committed
simplify footer on lower res screens
1 parent 639ae15 commit 492bd0b

File tree

4 files changed

+62
-19
lines changed

4 files changed

+62
-19
lines changed

src/App.vue

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,58 @@
8888
v{{version}}
8989
</small>
9090
</div>
91-
<div class="ml-2">
92-
<v-btn href="https://github.com/duinoapp/duinoapp-client/issues" target="_blank" rel="noopener noreferrer" text small>
93-
<v-icon small left>mdi-bug-outline</v-icon>
94-
Issues
95-
</v-btn>
96-
<v-btn href="https://github.com/duinoapp/duinoapp-client/wiki/Privacy-Policy" target="_blank" rel="noopener noreferrer" text small>
97-
<v-icon small left>mdi-incognito</v-icon>
98-
Privacy
99-
</v-btn>
100-
<v-btn href="https://github.com/duinoapp/duinoapp-client/wiki/Terms-of-Service" target="_blank" rel="noopener noreferrer" text small>
101-
<v-icon small left>mdi-scale-balance</v-icon>
102-
Terms
103-
</v-btn>
91+
<div :class="{ 'ml-2': true, 'mr-auto': $vuetify.breakpoint.mdAndDown }">
92+
<v-tooltip top>
93+
<template #activator="{ on }">
94+
<v-btn
95+
href="https://github.com/duinoapp/duinoapp-client/issues"
96+
target="_blank"
97+
rel="noopener noreferrer"
98+
:text="!$vuetify.breakpoint.mdAndDown"
99+
:icon="$vuetify.breakpoint.mdAndDown"
100+
small
101+
v-on="on"
102+
>
103+
<v-icon small left>mdi-bug-outline</v-icon>
104+
{{ !$vuetify.breakpoint.mdAndDown ? 'Issues' : '' }}
105+
</v-btn>
106+
</template>
107+
<span>Report an Issue/Bug</span>
108+
</v-tooltip>
109+
<v-tooltip top>
110+
<template #activator="{ on }">
111+
<v-btn
112+
href="https://github.com/duinoapp/duinoapp-client/wiki/Privacy-Policy"
113+
target="_blank"
114+
rel="noopener noreferrer"
115+
:text="!$vuetify.breakpoint.mdAndDown"
116+
:icon="$vuetify.breakpoint.mdAndDown"
117+
small
118+
v-on="on"
119+
>
120+
<v-icon small left>mdi-incognito</v-icon>
121+
{{ !$vuetify.breakpoint.mdAndDown ? 'Privacy' : '' }}
122+
</v-btn>
123+
</template>
124+
<span>Privacy Policy</span>
125+
</v-tooltip>
126+
<v-tooltip top>
127+
<template #activator="{ on }">
128+
<v-btn
129+
href="https://github.com/duinoapp/duinoapp-client/wiki/Terms-of-Service"
130+
target="_blank"
131+
rel="noopener noreferrer"
132+
:text="!$vuetify.breakpoint.mdAndDown"
133+
:icon="$vuetify.breakpoint.mdAndDown"
134+
small
135+
v-on="on"
136+
>
137+
<v-icon small left>mdi-scale-balance</v-icon>
138+
{{ !$vuetify.breakpoint.mdAndDown ? 'Terms' : '' }}
139+
</v-btn>
140+
</template>
141+
<span>Terms of Service</span>
142+
</v-tooltip>
104143
</div>
105144
<v-spacer/>
106145
<serial-footer v-if="serialReady" />

src/components/boards/footer-btn.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<v-tooltip top v-if="currentBoard">
44
<template v-slot:activator="{ on }">
55
<v-btn text dense small v-on="on" to="/tools/boards">
6-
Board: {{currentBoard.fqbn.split(':').shift()}} {{currentBoard.fqbn.split(':').pop()}}
6+
<v-icon v-show="$vuetify.breakpoint.mdAndDown" small left>mdi-chip</v-icon>
7+
<span v-show="!$vuetify.breakpoint.mdAndDown">Board:</span>
8+
{{currentBoard.fqbn.split(':').shift()}} {{currentBoard.fqbn.split(':').pop()}}
79
</v-btn>
810
</template>
911
<span>{{currentBoard.name}}</span>

src/components/serial/footer-btn.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<!-- eslint-disable-next-line vue/no-unused-vars -->
44
<template #activator="{ on }">
55
<v-btn text dense small @click="activate(on)" v-if="currentDevice">
6-
Serial: {{deviceName}}
6+
<v-icon v-show="$vuetify.breakpoint.mdAndDown" small left>mdi-usb-port</v-icon>
7+
<span v-show="!$vuetify.breakpoint.mdAndDown">Serial:</span>
8+
{{deviceName}}
79
</v-btn>
8-
<v-btn text dense small @click="activate" v-else>Select Device Port</v-btn>
10+
<v-btn text dense small @click="activate" v-else>Select Device</v-btn>
911
</template>
1012
<v-list dense :style="{ padding: '0' }">
1113
<v-list-item

src/components/servers/footer-btn.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
<v-tooltip top v-if="currentServer">
44
<template v-slot:activator="{ on }">
55
<v-btn text dense small to="/tools/servers" v-on="on">
6-
Server:
6+
<v-icon v-show="$vuetify.breakpoint.mdAndDown" small left>mdi-server</v-icon>
7+
<span v-show="!$vuetify.breakpoint.mdAndDown">Server:</span>
78
<v-chip
89
:color="currentServer.valid ? 'success' : 'error'"
910
class="mx-1"
1011
x-small
1112
>
1213
{{currentServer.valid ? 'Online' : 'Offline'}}
1314
</v-chip>
14-
{{flag}}
1515
</v-btn>
1616
</template>
17-
<span>{{currentServer.name}} ({{currentServer.country}})</span>
17+
<span>{{flag}} {{currentServer.name}}</span>
1818
</v-tooltip>
1919
<v-btn v-else text dense small to="/tools/servers">Select Server</v-btn>
2020
</div>

0 commit comments

Comments
 (0)