Skip to content

Commit

Permalink
fix: remove spaces and keep buttons visibles
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex P. Scigalszky authored and Alex P. Scigalszky committed Mar 7, 2023
1 parent e7b5880 commit fd18866
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions src/app/components/item-actions/item-actions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import { Item } from 'src/app/models/item';
selector: 'app-item-actions',
template: `
<div>
<small>Mark as </small>
<button
*ngIf="item.dones[order] === false || item.dones[order] === null"
[class.disabled]="!(item.dones[order] === false || item.dones[order] === null)"
(click)="markAsDone()"
type="button"
class="btn btn-sm btn-outline-success mr-2"
Expand All @@ -17,20 +16,20 @@ import { Item } from 'src/app/models/item';
</button>
<button
*ngIf="item.dones[order] === true || item.dones[order] === null"
[class.disabled]="!(item.dones[order] === true || item.dones[order] === null)"
(click)="markAsTodo()"
type="button"
class="btn btn-sm btn-outline-secondary mr-2"
>
To do
</button>
<button
*ngIf="item.dones[order] !== null"
[class.disabled]="!(item.dones[order] !== null)"
(click)="clear()"
type="button"
class="btn btn-sm btn-link-danger"
>
Clear
Reset
</button>
</div>
`,
Expand Down
8 changes: 4 additions & 4 deletions src/app/components/item/item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import { MarkAsDone } from 'src/app/types/mark_as_done.type';
</div>
</h2>
</div>
<div class="card-body">
<div class="card-body p-0">
<ul class="list-group">
<li class="list-group-item">
<div
class="d-flex justify-content-between align-items-center list-group-item-action"
>
<div>
<i class="icons bi-1-circle-fill gold"></i>
<!-- <i class="icons bi-1-circle-fill gold"></i> -->
{{ item.first }}
</div>
<app-item-actions
Expand All @@ -47,7 +47,7 @@ import { MarkAsDone } from 'src/app/types/mark_as_done.type';
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"
>
<div>
<i class="icons bi-2-circle-fill platinium"></i>
<!-- <i class="icons bi-2-circle-fill platinium"></i> -->
{{ item.second }}
</div>
<app-item-actions
Expand All @@ -64,7 +64,7 @@ import { MarkAsDone } from 'src/app/types/mark_as_done.type';
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"
>
<div>
<i class="icons bi-3-circle-fill bronce"></i>
<!-- <i class="icons bi-3-circle-fill bronce"></i> -->
{{ item.third }}
</div>
<app-item-actions
Expand Down

0 comments on commit fd18866

Please sign in to comment.