Skip to content

Commit e82a914

Browse files
committed
Fix
1 parent 8d1790b commit e82a914

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/panels/config/automation/sidebar/ha-automation-sidebar-card.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,14 @@ export default class HaAutomationSidebarCard extends LitElement {
115115
class=${classMap({
116116
"fade-top": true,
117117
rounded: this.isWide,
118-
visible: true,
119-
// visible: this._contentScrolled,
118+
visible: this._contentScrolled,
120119
})}
121120
></div>
122121
<div
123122
class=${classMap({
124123
"fade-bottom": true,
125124
rounded: this.isWide,
126-
visible: true,
127-
// visible: this._contentScrollable,
125+
visible: this._contentScrollable,
128126
})}
129127
></div>
130128
</div>
@@ -196,14 +194,17 @@ export default class HaAutomationSidebarCard extends LitElement {
196194
}
197195
198196
.card-content {
199-
position: relative;
200197
flex: 1 1 auto;
201198
min-height: 0;
202199
overflow: auto;
203200
margin-top: 0;
204201
padding-bottom: max(var(--safe-area-inset-bottom, 0px), 32px);
205202
}
206203
204+
.fade-top {
205+
top: var(--ha-space-17);
206+
}
207+
207208
@media all and (max-width: 870px) {
208209
.card-content {
209210
padding-bottom: 42px;

src/resources/styles.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ export const scrollableFadeStyles = css`
239239
pointer-events: none;
240240
transition: opacity 180ms ease-in-out;
241241
background: linear-gradient(to bottom, rgba(17, 17, 17, 0.4), transparent);
242+
border-radius: var(--ha-border-radius-square);
242243
z-index: 100;
243244
opacity: 0;
244245
}
@@ -269,11 +270,6 @@ export const scrollableFadeStyles = css`
269270
border-bottom-left-radius: var(--ha-border-radius-square);
270271
border-bottom-right-radius: var(--ha-border-radius-square);
271272
}
272-
273-
.fade-top:not(.rounded),
274-
.fade-bottom:not(.rounded) {
275-
border-radius: var(--ha-border-radius-square);
276-
}
277273
`;
278274

279275
export const baseEntrypointStyles = css`

0 commit comments

Comments
 (0)