From 4d183f9916235eb94a6345992c34f4d548d4d55a Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Wed, 19 Apr 2023 12:40:50 +1000 Subject: [PATCH] Dev UI DevService page to use new card component Signed-off-by: Phillip Kruger --- .../resources/dev-ui/qwc/qwc-dev-services.js | 37 +++++-------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-dev-services.js b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-dev-services.js index f54e9d81a5ab0..16113ef4d330e 100644 --- a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-dev-services.js +++ b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-dev-services.js @@ -1,8 +1,8 @@ import {LitElement, html, css} from 'lit'; import {devServices} from 'devui-data'; -import '@vaadin/vertical-layout'; import '@vaadin/icon'; import 'qui-code-block'; +import 'qui-card'; /** * This component shows the Dev Services Page @@ -11,29 +11,9 @@ export class QwcDevServices extends LitElement { static styles = css` .cards { height: 100%; + padding-right: 10px; } - .card { - display: flex; - flex-direction: column; - border: 1px solid var(--lumo-contrast-10pct); - border-radius: 4px; - margin-left: 30px; - margin-right: 30px; - } - - .card-header { - font-size: var(--lumo-font-size-l); - line-height: 1; - height: 25px; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - padding: 10px 10px; - background-color: var(--lumo-contrast-5pct); - border-bottom: 1px solid var(--lumo-contrast-10pct); - } - + .configHeader { padding: 10px; } @@ -93,11 +73,12 @@ export class QwcDevServices extends LitElement { } _renderCard(devService){ - return html`
-
${devService.name}
- ${this._renderContainerDetails(devService)} - ${this._renderConfigDetails(devService)} -
`; + return html` +
+ ${this._renderContainerDetails(devService)} + ${this._renderConfigDetails(devService)} +
+
`; } _renderContainerDetails(devService){