Skip to content

Commit

Permalink
Merge 2f899d1 into 984a1be
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-h05 authored Mar 3, 2023
2 parents 984a1be + 2f899d1 commit ffe46b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export const actionsMixin = {
const actionsPromise = new Promise((resolve, reject) => {
if (actionCommandOptions && typeof actionCommandOptions === 'string') {
resolve(actionCommandOptions.split(',').map((o) => {
const parts = o.split('=')
const parts = o.trim().split('=')
return {
text: parts[1] || parts[0],
text: parts[1].trim() || parts[0].trim(),
color: 'blue',
onClick: () => {
this.$store.dispatch('sendCommand', { itemName: actionCommandOptionsItem, cmd: parts[0] })
this.$store.dispatch('sendCommand', { itemName: actionCommandOptionsItem, cmd: parts[0].trim() })
.then(() => this.showActionFeedback(prefix, actionConfig))
}
}
Expand Down
4 changes: 4 additions & 0 deletions bundles/org.openhab.ui/web/src/css/app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ html
.delete
--f7-bars-link-color #ff3b30

// Fix actions-modal/popup is placed behind the notch or outside of the screen on iPhone in openHAB iOS app
.device-ios .actions-modal
max-height: calc(100% - var(--f7-safe-area-top) - var(--f7-safe-area-bottom))

.md .contextual-toolbar
--f7-theme-color #474747
--f7-bars-bg-color #474747
Expand Down

0 comments on commit ffe46b8

Please sign in to comment.