Skip to content

Commit

Permalink
Merge 653d813 into a55220e
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-h05 authored Feb 25, 2023
2 parents a55220e + 653d813 commit c71b2e1
Show file tree
Hide file tree
Showing 2 changed files with 12 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
9 changes: 9 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,15 @@ 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
@media (orientation: portrait)
.ios .actions-modal
max-height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))

@media (orientation: landscape)
.ios .actions-modal
max-height: calc(100% - env(safe-area-inset-left, 0px))

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

0 comments on commit c71b2e1

Please sign in to comment.