-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* improve contentlet-block styles * configure web components on block editor project * progress * update block contentlet style * feedback * working Co-authored-by: Rafael <[email protected]>
- Loading branch information
Showing
7 changed files
with
84 additions
and
29 deletions.
There are no files selected for viewing
20 changes: 17 additions & 3 deletions
20
.../src/lib/extensions/components/suggestions-list-item/suggestions-list-item.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
<div class="icon-wrapper"> | ||
<div class="icon-wrapper" [class.dot-contentlet]="data?.contentlet"> | ||
<i class="material-icons" *ngIf="icon; else thumbnail">{{ url }}</i> | ||
|
||
<ng-template #thumbnail> | ||
<img [src]="url" alt="" /> | ||
<dot-contentlet-thumbnail *ngIf="data?.contentlet else image " | ||
[contentlet]="data.contentlet" | ||
[width]="42" | ||
[height]="42" | ||
[iconSize]="'42px'" | ||
></dot-contentlet-thumbnail> | ||
</ng-template> | ||
</div> | ||
<div class='data-wrapper'> | ||
<span>{{ label }}</span> | ||
<div *ngIf="data?.contentlet" class="state"> | ||
<dot-state-icon [state]="data.contentlet" size="16px"></dot-state-icon> | ||
<dot-badge bordered="true">{{data.contentlet.language}}</dot-badge> | ||
</div> | ||
</div> | ||
|
||
<span>{{ label }}</span> | ||
<ng-template #image> | ||
<img [src]="url" alt="" /> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters