Skip to content

UI Editor for picture-glance card#3709

Merged
iantrich merged 7 commits into
home-assistant:devfrom
iantrich:picture-glance-editor
Sep 25, 2019
Merged

UI Editor for picture-glance card#3709
iantrich merged 7 commits into
home-assistant:devfrom
iantrich:picture-glance-editor

Conversation

@iantrich
Copy link
Copy Markdown
Member

Closes #3700

@iantrich iantrich self-assigned this Sep 13, 2019
Comment thread src/panels/lovelace/cards/hui-picture-glance-card.ts Outdated
Comment thread src/panels/lovelace/editor/config-elements/hui-picture-glance-card-editor.ts Outdated
Comment thread src/panels/lovelace/editor/config-elements/hui-picture-glance-card-editor.ts Outdated
Comment thread src/panels/lovelace/editor/config-elements/hui-picture-glance-card-editor.ts Outdated
Comment thread src/panels/lovelace/editor/config-elements/hui-picture-glance-card-editor.ts Outdated
@bramkragten
Copy link
Copy Markdown
Member

We should try to make our editors as clear as possible, it might be a good idea to add a little paragraph to explain what some options and functions do.

@iantrich
Copy link
Copy Markdown
Member Author

I agree that our editors should be clear, but they are still a WIP. It could get pretty verbose trying to explain in detail everything that is going on here. For now I have just put in a link to the documentation.

Comment thread src/panels/lovelace/cards/hui-picture-glance-card.ts Outdated
Comment thread src/panels/lovelace/editor/config-elements/hui-picture-glance-card-editor.ts Outdated
@iantrich iantrich force-pushed the picture-glance-editor branch from 1c63529 to a9f002a Compare September 25, 2019 03:28
}

get _aspect_ratio(): string {
return this._config!.aspect_ratio || "50%";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return this._config!.aspect_ratio || "50%";
return this._config!.aspect_ratio || "";

Copy link
Copy Markdown
Member

@bramkragten bramkragten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to merge after comment

@iantrich iantrich merged commit 95dfcaf into home-assistant:dev Sep 25, 2019
@bramkragten bramkragten mentioned this pull request Oct 2, 2019
@iantrich iantrich deleted the picture-glance-editor branch October 30, 2019 03:19
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI Editor: Picture Glance

3 participants