mirror of
https://github.com/Matysh/houseplan-card
synced 2026-07-31 08:28:31 +00:00
fix v1.11.2: Description textarea in the device dialog was squeezed by the dialog's flex column — min-height 92px, flex-shrink 0, rows 4
This commit is contained in:
@@ -20,7 +20,7 @@ import './editor';
|
||||
import { cardStyles } from './styles';
|
||||
import { langOf, t, type I18nKey } from './i18n';
|
||||
|
||||
const CARD_VERSION = '1.11.1';
|
||||
const CARD_VERSION = '1.11.2';
|
||||
const LS_KEY = 'houseplan_card_layout_v1';
|
||||
const LS_CFG = 'houseplan_card_cfg_v1'; // cache of the server config+layout for instant rendering
|
||||
const LS_ZOOM = 'houseplan_card_zoom_v1';
|
||||
@@ -1856,7 +1856,7 @@ class HouseplanCard extends LitElement {
|
||||
@input=${(e: Event) => (this._markerDialog = { ...d, link: (e.target as HTMLInputElement).value })} />
|
||||
|
||||
<label>${this._t('marker.desc_label')}</label>
|
||||
<textarea class="descin" rows="3" placeholder=${this._t('marker.desc_ph')}
|
||||
<textarea class="descin" rows="4" placeholder=${this._t('marker.desc_ph')}
|
||||
.value=${d.description}
|
||||
@input=${(e: Event) => (this._markerDialog = { ...d, description: (e.target as HTMLTextAreaElement).value })}></textarea>
|
||||
|
||||
|
||||
@@ -432,6 +432,10 @@ export const cardStyles = css`
|
||||
font-size: 13px;
|
||||
font-family: inherit;
|
||||
resize: vertical;
|
||||
/* flex column of the dialog body squeezes textareas — keep a usable height */
|
||||
min-height: 92px;
|
||||
flex-shrink: 0;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.bindsel {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user