Made device columns and rows prettier

This commit is contained in:
Patrick Hatsune 2024-09-30 10:28:17 -07:00
parent afc3e33a45
commit c115dbc865
Signed by: keyemail
GPG key ID: A03C1F76E54247A0
2 changed files with 20 additions and 1 deletions

View file

@ -26,6 +26,12 @@
<component :is="section.icon"/>
<h3>{{ section.title }}</h3>
</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">
<div id="device">
<p>{{ device.name }}</p>
@ -33,7 +39,7 @@
<p>{{ device.mac }}</p>
</div>
</form>
<p v-else>No devices connected!</p>
<p id="noDevicesFound" v-else>No devices found!</p>
</section>
</div>
</template>

View file

@ -219,4 +219,17 @@
flex-direction: column;
gap: 10px;
}
#deviceKey, #device {
display: flex;
justify-content: space-between;
width: 100%;
padding: 5px;
p {
flex: 1;
text-align: center;
}
}
#noDevicesFound {
text-align: center;
}
}