Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make title error visible and wrap when content is long #390

Merged
merged 7 commits into from
Dec 21, 2022

Conversation

lagartoverde
Copy link
Contributor

@lagartoverde lagartoverde added the bug Something isn't working label Dec 16, 2022
@lagartoverde lagartoverde self-assigned this Dec 16, 2022
{{on "input" this.setTitle}}
{{did-insert this.focus}}
/>
{{#if this.error}}
Copy link
Member

Choose a reason for hiding this comment

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

You can put the if statement inside the class value here

{{#if this.error}}
<input
class="au-c-app-chrome__title-input au-c-input--error "
placeholder="Naamloos document"
Copy link
Member

Choose a reason for hiding this comment

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

i18n please

@@ -1,6 +1,6 @@
{{#if @readOnly}}
<h1 class="au-c-app-chrome__title">
{{this.title}}
{{limit-content this.title 70}}
Copy link
Member

Choose a reason for hiding this comment

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

probably want some way to see the full title when read-only. (when not read-only, you can see it by editing it)

Copy link
Contributor

@elpoelma elpoelma left a comment

Choose a reason for hiding this comment

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

Works as expected

@lagartoverde lagartoverde merged commit 54f6763 into master Dec 21, 2022
@lagartoverde lagartoverde deleted the bugfix/improve-editor-document branch December 21, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants