mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Nicer scrolling for more-info (#1005)
* nicer more-info scrolling (momentum & rubberband) * move chart into scrolling region. Fixes resizing issues of the paper-dialog (and scrolling area) because of chart rendering after loading.
This commit is contained in:
parent
8146794857
commit
3324c7e01c
@ -66,7 +66,7 @@
|
||||
state-obj="[[stateObj]]"
|
||||
hass='[[hass]]' in-dialog></state-card-content>
|
||||
</template>
|
||||
|
||||
<paper-dialog-scrollable dialog-element='[[dialogElement]]'>
|
||||
<template is='dom-if' if="[[_computeShowHistoryComponent(hass, stateObj)]]" restamp>
|
||||
<ha-state-history-data
|
||||
hass='[[hass]]'
|
||||
@ -84,9 +84,9 @@
|
||||
is-zoomable=[[large]]
|
||||
></state-history-charts>
|
||||
</template>
|
||||
<paper-dialog-scrollable dialog-element='[[dialogElement]]'>
|
||||
<more-info-content
|
||||
state-obj="[[stateObj]]" hass='[[hass]]'></more-info-content>
|
||||
state-obj="[[stateObj]]" hass='[[hass]]'
|
||||
></more-info-content>
|
||||
</paper-dialog-scrollable>
|
||||
</template>
|
||||
</dom-module>
|
||||
|
@ -172,7 +172,7 @@
|
||||
}
|
||||
|
||||
--paper-dialog-scrollable: {
|
||||
-webkit-overflow-scrolling: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
@ -183,7 +183,7 @@
|
||||
}
|
||||
:host {
|
||||
--paper-dialog-scrollable: {
|
||||
-webkit-overflow-scrolling: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user