Made device columns and rows prettier
This commit is contained in:
parent
afc3e33a45
commit
c115dbc865
|
@ -26,6 +26,12 @@
|
||||||
<component :is="section.icon"/>
|
<component :is="section.icon"/>
|
||||||
<h3>{{ section.title }}</h3>
|
<h3>{{ section.title }}</h3>
|
||||||
</header>
|
</header>
|
||||||
|
<div id="deviceKey">
|
||||||
|
<p>Device Name</p>
|
||||||
|
<p>IP Address</p>
|
||||||
|
<p>MAC Address</p>
|
||||||
|
</div>
|
||||||
|
<div class="seperator"></div>
|
||||||
<form v-if="section.devices" v-for="device in section.devices">
|
<form v-if="section.devices" v-for="device in section.devices">
|
||||||
<div id="device">
|
<div id="device">
|
||||||
<p>{{ device.name }}</p>
|
<p>{{ device.name }}</p>
|
||||||
|
@ -33,7 +39,7 @@
|
||||||
<p>{{ device.mac }}</p>
|
<p>{{ device.mac }}</p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<p v-else>No devices connected!</p>
|
<p id="noDevicesFound" v-else>No devices found!</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -219,4 +219,17 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
#deviceKey, #device {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
p {
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#noDevicesFound {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue