From 5f260e3ec9ca72c94e53480a847d39bc0c025f3d Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Fri, 11 Oct 2024 23:53:10 +0200 Subject: [PATCH 1/2] oh-input: Fix style issue on mobile when sendButton is enabled & Update docs This fixes a minor styling issue on mobile devices, where the input's column is too wide and the sendButton overflows to the next line. Also add `time` to the docs for valid input types. Signed-off-by: Florian Hotze --- .../web/src/assets/definitions/widgets/system/input.js | 2 +- .../web/src/components/widgets/system/oh-input.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/input.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/input.js index ff250216f6..2672d133e1 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/input.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/input.js @@ -2,7 +2,7 @@ import { pi, pb, pt, pd } from '../helpers.js' export default () => [ pt('name', 'Name', 'Input name'), - pt('type', 'Type', 'Type of input (see f7 input docs, date or datepicker)'), + pt('type', 'Type', 'Type of input (see f7 input docs, time, date or datepicker)'), pt('inputmode', 'Input Mode', 'Type of data that might be entered (see MDN docs)'), pt('placeholder', 'Placeholder', 'Placeholder text'), pb('sendButton', 'Send button', 'Display Send button to update the state with a command (needs a configured item)'), diff --git a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-input.vue b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-input.vue index 8f715971bd..fe79dd9e93 100644 --- a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-input.vue +++ b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-input.vue @@ -8,7 +8,7 @@ - From 321ef2cd5ec7eec0ef4f3ee2db34c0d0d0978e16 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Fri, 11 Oct 2024 23:54:20 +0200 Subject: [PATCH 2/2] Regenerate component docs Signed-off-by: Florian Hotze --- bundles/org.openhab.ui/doc/components/oh-input-card.md | 2 +- bundles/org.openhab.ui/doc/components/oh-input-item.md | 2 +- bundles/org.openhab.ui/doc/components/oh-input.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.ui/doc/components/oh-input-card.md b/bundles/org.openhab.ui/doc/components/oh-input-card.md index c74fe0f865..ec5997092b 100644 --- a/bundles/org.openhab.ui/doc/components/oh-input-card.md +++ b/bundles/org.openhab.ui/doc/components/oh-input-card.md @@ -67,7 +67,7 @@ Display an input in a card - Type of input (see f7 input docs, date or datepicker) + Type of input (see f7 input docs, time, date or datepicker) diff --git a/bundles/org.openhab.ui/doc/components/oh-input-item.md b/bundles/org.openhab.ui/doc/components/oh-input-item.md index dbfee067ed..d08ef81018 100644 --- a/bundles/org.openhab.ui/doc/components/oh-input-item.md +++ b/bundles/org.openhab.ui/doc/components/oh-input-item.md @@ -72,7 +72,7 @@ Display an input field in a list - Type of input (see f7 input docs, date or datepicker) + Type of input (see f7 input docs, time, date or datepicker) diff --git a/bundles/org.openhab.ui/doc/components/oh-input.md b/bundles/org.openhab.ui/doc/components/oh-input.md index fce29358f6..2a6ca0d24e 100644 --- a/bundles/org.openhab.ui/doc/components/oh-input.md +++ b/bundles/org.openhab.ui/doc/components/oh-input.md @@ -35,7 +35,7 @@ Displays an input field, used to set a variable - Type of input (see f7 input docs, date or datepicker) + Type of input (see f7 input docs, time, date or datepicker)