Skip to content

Commit

Permalink
fix: change property title size under avatar 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
agoalofalife committed Aug 20, 2023
1 parent 76c90a3 commit f12f27d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/views/fields/avatar.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@component($typeForm, get_defined_vars())
<div style="display: flex;flex-direction: column;align-items: @if($left) flex-start @elseif($right) flex-end @else center @endif" >
<img src="{{$value}}" class="rounded-circle mb-3" style="width: {{$heightByPercent}}%;" alt="Avatar" />
<div class="mb-2" style="align-self: @if($left) flex-start @elseif($right) flex-end @else center @endif"><strong>{{$nameAvatar}}</strong></div>
<div class="mb-2" style="align-self: @if($left) flex-start @elseif($right) flex-end @else center @endif">
<strong style="font-size: {{$fontSizeByPx}}px">{{$nameAvatar}}</strong></div>
</div>
@endcomponent
2 changes: 1 addition & 1 deletion src/Fields/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Avatar extends Field
* @var array
*/
protected $attributes = [
'sizeTitle' => 5,
'fontSizeByPx' => 15,
'heightByPercent' => 50,
'nameAvatar' => 'name',
'left' => true,
Expand Down

0 comments on commit f12f27d

Please sign in to comment.