Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 59 additions & 9 deletions core/frontend/src/components/autopilot/EndpointCard.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<template>
<v-card
width="80%"
height="130px"
class="d-flex justify-space-between align-center justify-center"
class="endpoint-card d-flex justify-space-between align-center justify-center"
>
<div
class="align-center justify-center ml-5"
style="width: 20%;"
>
<div class="endpoint-name align-center justify-center">
<p class="text-h6 text-center ma-0">
{{ endpoint.name }}
</p>
Expand All @@ -17,7 +12,7 @@
</div>
<div
min-width="106px"
class="d-flex flex-column justify-center elevation-0 pa-1"
class="endpoint-details d-flex flex-column justify-center elevation-0 pa-1"
>
<v-simple-table
dense
Expand All @@ -40,7 +35,7 @@
</div>
<div
width="62px"
class="d-flex flex-column justify-center elevation-0 pa-1 mr-5"
class="endpoint-flags d-flex justify-center elevation-0 pa-1"
>
<v-icon
v-tooltip="persistency.tooltip"
Expand Down Expand Up @@ -213,6 +208,21 @@ export default Vue.extend({
</script>

<style scoped>
.endpoint-card {
width: 80%;
height: 130px;
}

.endpoint-name {
width: 20%;
margin-left: 20px;
}

.endpoint-flags {
flex-direction: column;
margin-right: 20px;
}

.endpoint-buttons {
gap: 8px;
position: absolute;
Expand All @@ -222,4 +232,44 @@ export default Vue.extend({
display: flex;
flex-direction: column;
}

@media (max-width: 600px) {
.endpoint-card {
width: 100%;
height: auto;
flex-wrap: wrap;
row-gap: 8px;
padding: 12px 0;
}

.endpoint-details,
.endpoint-flags {
flex: 1 1 50%;
justify-content: center;
min-width: 0;
}

.endpoint-name,
.endpoint-buttons {
flex: 1 1 100%;
justify-content: center;
}

.endpoint-name {
width: auto;
margin-left: 0;
}

.endpoint-flags {
flex-direction: row;
align-items: center;
margin-right: 0;
}

.endpoint-buttons {
position: static;
flex-direction: row;
transform: none;
}
}
</style>
18 changes: 16 additions & 2 deletions core/frontend/src/components/autopilot/EndpointManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<div class="endpoints-manager d-flex flex-column align-center">
<div
v-if="are_endpoints_available && !updating_endpoints && !updating_router"
class="d-flex flex-column align-center justify-center ma-0 pa-0"
style="width: 80%;"
class="endpoints-list d-flex flex-column align-center justify-center ma-0 pa-0"
>
<v-divider
width="80%"
Expand Down Expand Up @@ -266,4 +265,19 @@ export default Vue.extend({
width: 80%;
margin-bottom: 100px;
}

.endpoints-list {
width: 80%;
}

@media (max-width: 600px) {
.endpoints-manager {
width: 100%;
padding: 0 12px;
}

.endpoints-list {
width: 100%;
}
}
</style>
2 changes: 2 additions & 0 deletions core/frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ export default defineConfig(({ command, mode }) => {
},
'^/ardupilot-manager': {
target: SERVER_ADDRESS,
changeOrigin: true,
autoRewrite: true,
},
'^/bag': {
target: SERVER_ADDRESS,
Expand Down
Loading