Skip to content

Commit 184b6a0

Browse files
committed
Fix UI on mobile screens
1 parent 806f705 commit 184b6a0

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

src/components/SponsorCard.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<template>
22
<v-card variant="flat" color="transparent">
33
<v-card-text>
4-
<v-list-item class="px-0" :prepend-avatar="'https://avatars.githubusercontent.com/u/' + props.userid + '?s=80'">
4+
<v-list-item class="px-0" :prepend-avatar="!xs ? UserImageLink : undefined">
5+
<v-list-item-media v-if="xs">
6+
<v-icon>
7+
<v-img :src="UserImageLink"></v-img>
8+
</v-icon>
9+
</v-list-item-media>
510
<v-list-item-title class="text-body-2 text-white">
6-
<a :href="'https://github.com/' + props.user" class="text-decoration-none">{{ props.name }} <span class="d-none d-lg-inline">(@{{ props.user }})</span></a>
11+
<a :href="'https://github.com/' + props.user" class="text-decoration-none"><span class="d-none d-lg-inline">{{ props.name }} (</span>@{{ props.user }}<span class="d-none d-lg-inline">)</span></a>
712
</v-list-item-title>
813
<v-list-item-subtitle>
914
{{ props.role }}
@@ -17,7 +22,15 @@
1722
</template>
1823

1924
<script setup lang="ts">
20-
const props = defineProps(['user', 'userid', 'name', 'role'])
25+
import { useDisplay } from 'vuetify';
26+
import { computed } from 'vue';
27+
28+
const props = defineProps(['user', 'userid', 'name', 'role']);
29+
const { xs } = useDisplay();
30+
31+
const UserImageLink = computed(() => {
32+
return 'https://avatars.githubusercontent.com/u/' + props.userid + '?s=80';
33+
});
2134
</script>
2235

2336
<style>

src/components/XTermScapy.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ term.onData(e => {
333333
</script>
334334

335335
<script setup lang="ts">
336-
import { onMounted, onUnmounted } from 'vue';
336+
import { onMounted } from 'vue';
337337
import { useDisplay } from 'vuetify';
338338
339339
const { smAndDown } = useDisplay();

src/layouts/default/Default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<default-view />
66

77
<v-footer class="text-center d-flex flex-column">
8-
<v-breadcrumbs divider="">
8+
<v-breadcrumbs divider="" class="text-no-wrap">
99
<v-breadcrumbs-item>Scapy community</v-breadcrumbs-item>
1010
<v-breadcrumbs-divider />
1111
<v-breadcrumbs-item>2008-{{ currentYear }}</v-breadcrumbs-item>
1212
<v-breadcrumbs-divider />
1313
<v-breadcrumbs-item><a href="https://scapy.net">scapy.net</a></v-breadcrumbs-item>
1414
</v-breadcrumbs>
1515
<p>
16-
This website is published under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA-2.5</a>
16+
This website is published under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA-2.5</a> and was developped by <a href="https://github.com/gpotter2">gpotter2</a>.
1717
</p>
1818
</v-footer>
1919
</v-app>

src/views/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@
8383
<v-col cols="12" lg="5">
8484
<TerminalFrame style="position: relative;">
8585
<XTerm :static="DEMO_CODE" class="scapy-term" />
86-
<div style="position: absolute; right: 5px; bottom: 5px;">
86+
<div style="position: absolute; right: 20px; bottom: 20px;">
8787
<v-tooltip text="Try Scapy" location="start">
8888
<template v-slot:activator="{ props }">
89-
<v-btn v-bind="props" class="px-0" min-width="36px" color="yellow" @click="setTryScapy(true)">
89+
<v-btn v-bind="props" class="px-0 text-center" min-width="36px" color="yellow" @click="setTryScapy(true)">
9090
<span class="font-weight-bold">>_</span>
9191
</v-btn>
9292
</template>

0 commit comments

Comments
 (0)