Skip to content

Commit

Permalink
fix(ui): node details in mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Feb 23, 2021
1 parent 246c078 commit 9fcc8e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/ValueId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@
></v-select>

<div v-if="value.type == 'boolean' && value.writeable && value.readable">
<v-btn-toggle v-model="value.newValue" rounded class="mt-5">
<v-btn-toggle v-model="value.newValue" rounded>
<v-btn
outlined
height="40px"
:value="true"
:style="{
background: value.newValue ? '#4CAF50' : ''
Expand All @@ -119,6 +120,7 @@
</v-btn>
<v-btn
outlined
height="40px"
:value="false"
:style="{
background: !value.newValue ? '#f44336' : ''
Expand Down Expand Up @@ -155,7 +157,7 @@
font-weight: bold;
color: black;
padding-left: 0;
height: 0;
margin-bottom: -10px;
}
</style>

Expand Down
8 changes: 7 additions & 1 deletion src/components/nodes-table/ExpandedNode.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<template>
<td :colspan="isMobile ? 1 : headers.length">
<v-tabs style="margin-top:10px" v-model="currentTab" fixed-tabs>
<v-tabs
style="margin-top:10px"
v-model="currentTab"
center-active
fixed-tabs
show-arrows
>
<v-tab key="node">Node</v-tab>
<v-tab v-if="showHass" key="homeassistant">Home Assistant</v-tab>
<v-tab key="groups">Groups</v-tab>
Expand Down

0 comments on commit 9fcc8e0

Please sign in to comment.