webapp: apply card-table class to info view cards
the cards in all information views still used a div.card-body around the table, which added a margin on all sides of the table. to achieve a unified look, these cards and tables now look the same as the inverter channel cards.
This commit is contained in:
parent
d5024436b7
commit
43f760aa24
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div :class="['card', addSpace ? 'mt-5' : '']">
|
||||
<div :class="['card', table ? 'card-table' : '', addSpace ? 'mt-5' : '']">
|
||||
<div :class="['card-header', textVariant]">{{ text }}</div>
|
||||
<div :class="['card-body', 'card-text', centerContent ? 'text-center' : '']">
|
||||
<slot />
|
||||
@ -14,6 +14,7 @@ export default defineComponent({
|
||||
props: {
|
||||
text: String,
|
||||
textVariant: String,
|
||||
table: Boolean,
|
||||
addSpace: Boolean,
|
||||
centerContent: Boolean,
|
||||
},
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('firmwareinfo.FirmwareInformation')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('firmwareinfo.FirmwareInformation')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('hardwareinfo.HardwareInformation')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('hardwareinfo.HardwareInformation')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('heapdetails.HeapDetails')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('heapdetails.HeapDetails')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('interfaceapinfo.NetworkInterface')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('interfaceapinfo.NetworkInterface')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
<CardElement
|
||||
:text="$t('interfacenetworkinfo.NetworkInterface', { iface: networkStatus.network_mode })"
|
||||
textVariant="text-bg-primary"
|
||||
table
|
||||
>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('memoryinfo.MemoryInformation')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('memoryinfo.MemoryInformation')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('pininfo.PinOverview')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('pininfo.PinOverview')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('radioinfo.RadioInformation')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('radioinfo.RadioInformation')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('taskdetails.TaskDetails')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('taskdetails.TaskDetails')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('wifiapinfo.WifiApInfo')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('wifiapinfo.WifiApInfo')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CardElement :text="$t('wifistationinfo.WifiStationInfo')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('wifistationinfo.WifiStationInfo')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
:show-reload="true"
|
||||
@reload="getMqttInfo"
|
||||
>
|
||||
<CardElement :text="$t('mqttinfo.ConfigurationSummary')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('mqttinfo.ConfigurationSummary')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
@ -102,7 +102,7 @@
|
||||
</div>
|
||||
</CardElement>
|
||||
|
||||
<CardElement :text="$t('mqttinfo.HassSummary')" textVariant="text-bg-primary" add-space>
|
||||
<CardElement :text="$t('mqttinfo.HassSummary')" textVariant="text-bg-primary" add-space table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
@ -155,7 +155,7 @@
|
||||
</div>
|
||||
</CardElement>
|
||||
|
||||
<CardElement :text="$t('mqttinfo.RuntimeSummary')" textVariant="text-bg-primary" add-space>
|
||||
<CardElement :text="$t('mqttinfo.RuntimeSummary')" textVariant="text-bg-primary" add-space table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<BasePage :title="$t('ntpinfo.NtpInformation')" :isLoading="dataLoading" :show-reload="true" @reload="getNtpInfo">
|
||||
<CardElement :text="$t('ntpinfo.ConfigurationSummary')" textVariant="text-bg-primary">
|
||||
<CardElement :text="$t('ntpinfo.ConfigurationSummary')" textVariant="text-bg-primary" table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
@ -21,7 +21,7 @@
|
||||
</div>
|
||||
</CardElement>
|
||||
|
||||
<CardElement :text="$t('ntpinfo.CurrentTime')" textVariant="text-bg-primary" add-space>
|
||||
<CardElement :text="$t('ntpinfo.CurrentTime')" textVariant="text-bg-primary" add-space table>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user