Skip to content

Commit

Permalink
fix(actions): allow scroll within actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed May 10, 2022
1 parent eacb5dc commit 32f22fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cards/cover-card/cover-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const computeSchema = memoizeOne((icon?: string): HaFormSchema[] => [
type: "grid",
name: "",
schema: [
{ name: "layout", selector: { "mush-layout": {} } },
{ name: "fill_container", selector: { boolean: {} } },
{ name: "hide_state", selector: { boolean: {} } },
],
Expand Down
8 changes: 7 additions & 1 deletion src/utils/card-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ export const cardStyle = css`
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-end;
justify-content: flex-start;
overflow-y: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 10+ */
}
.actions::-webkit-scrollbar {
background: transparent; /* Chrome/Safari/Webkit */
height: 0px;
}
.actions *:not(:last-child) {
margin-right: var(--spacing);
Expand Down

0 comments on commit 32f22fc

Please sign in to comment.