Skip to content

Commit

Permalink
refactor(single-document-details): document title and edit title form (
Browse files Browse the repository at this point in the history
  • Loading branch information
MitanOmar authored Dec 13, 2024
1 parent a53372e commit a66aa16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/components/single-document-details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</label>

<div
class="uk-flex uk-flex-middle uk-text-large uk-text-break"
class="uk-flex uk-flex-middle uk-text-break"
data-test-title-container
>
<FaIcon
Expand All @@ -31,9 +31,9 @@
{{set-style color=@document.category.color}}
/>
{{#if this.editTitle}}
<form {{on "submit" (perform this.saveDocument)}}>
<form {{on "submit" (perform this.saveDocument)}} class="uk-flex uk-width-expand">
<input
class="uk-input uk-width-auto
class="uk-input uk-width-expand
{{unless this.validTitle 'uk-form-danger'}}"
id="alexandria-details-title"
type="text"
Expand All @@ -51,7 +51,7 @@
></button>
</form>
{{else}}
<span data-test-title>{{@document.title}}</span>
<span class="uk-text-bolder" data-test-title>{{@document.title}}</span>
{{/if}}
</div>
</div>
Expand Down

0 comments on commit a66aa16

Please sign in to comment.