openhab-android icon indicating copy to clipboard operation
openhab-android copied to clipboard

Different handling for too long text on switch

Open Flole998 opened this issue 2 years ago • 2 comments

Currently there's a fixed limit of how many characters of a text for a switch are shown. I suggest to enhance this to compare all options for the switch to check if 2 or more would appear as duplicate (so it's no longer possible to distinguish between those), in that case switch to a selection instead.

Flole998 avatar Feb 23 '23 02:02 Flole998

Currently there's a fixed limit of how many characters of a text for a switch are shown.

No - the number of shown switches is fixed, not the number of characters. This is because checking the number of characters as suggested would vastly complicate the switch handling. Besides that, switching to a selection was removed in favor of an 'overflow' button. If there's more switches than can be shown (IOW, more switches than the screen width dependent constant maximum), another button will be shown that opens the selection bottom sheet.

maniac103 avatar Feb 23 '23 06:02 maniac103

In the just released version 3.3.0 the overflow button got smaller, so there should be place for text inside the buttons now.

mueller-ma avatar Feb 23 '23 09:02 mueller-ma