mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 23:36:36 +00:00
Hassio random fixes (#1278)
* Fix img width in markdown * Flexify add-on view * Hide deployment if null * Fix mobile add-on view
This commit is contained in:
parent
8e8d907090
commit
e28c651930
@ -62,6 +62,9 @@ class HassioAddonInfo extends EventsMixin(PolymerElement) {
|
|||||||
.right {
|
.right {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
ha-markdown img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<template is="dom-if" if="[[computeUpdateAvailable(addon)]]">
|
<template is="dom-if" if="[[computeUpdateAvailable(addon)]]">
|
||||||
<paper-card heading="Update available! 🎉">
|
<paper-card heading="Update available! 🎉">
|
||||||
|
@ -25,14 +25,28 @@ class HassioAddonView extends PolymerElement {
|
|||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 24px 0 32px;
|
padding: 24px 0 32px;
|
||||||
max-width: 600px;
|
display: flex;
|
||||||
margin: 0 auto;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
hassio-addon-info,
|
hassio-addon-info,
|
||||||
hassio-addon-network,
|
hassio-addon-network,
|
||||||
hassio-addon-audio,
|
hassio-addon-audio,
|
||||||
hassio-addon-config {
|
hassio-addon-config {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
width: 600px;
|
||||||
|
}
|
||||||
|
hassio-addon-logs {
|
||||||
|
min-width: 600px;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
hassio-addon-info,
|
||||||
|
hassio-addon-network,
|
||||||
|
hassio-addon-audio,
|
||||||
|
hassio-addon-config,
|
||||||
|
hassio-addon-logs {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<app-route route="[[route]]" pattern="/addon/:slug" data="{{routeData}}" active="{{routeMatches}}"></app-route>
|
<app-route route="[[route]]" pattern="/addon/:slug" data="{{routeData}}" active="{{routeMatches}}"></app-route>
|
||||||
|
@ -54,10 +54,12 @@ class HassioHostInfo extends EventsMixin(PolymerElement) {
|
|||||||
<td>System</td>
|
<td>System</td>
|
||||||
<td>[[data.operating_system]]</td>
|
<td>[[data.operating_system]]</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<template is="dom-if" if="[[data.deployment]]">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Deployment</td>
|
<td>Deployment</td>
|
||||||
<td>[[data.deployment]]</td>
|
<td>[[data.deployment]]</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</template>
|
||||||
</tbody></table>
|
</tbody></table>
|
||||||
<paper-button raised="" on-click="_showHardware" class="info">Show hardware</paper-button>
|
<paper-button raised="" on-click="_showHardware" class="info">Show hardware</paper-button>
|
||||||
<template is="dom-if" if="[[errors]]">
|
<template is="dom-if" if="[[errors]]">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user