Skip to content

Commit

Permalink
Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Apr 15, 2024
1 parent 0535989 commit ac8b2aa
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 22 deletions.
7 changes: 5 additions & 2 deletions resources/views/livewire/feed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<div class="text-center text-slate-400">There are no questions to show.</div>
@endforelse

<x-load-more-button :perPage="$perPage" :paginator="$questions"
message="There are no more questions to load, or you have scrolled too far." />
<x-load-more-button
:perPage="$perPage"
:paginator="$questions"
message="There are no more questions to load, or you have scrolled too far."
/>
</section>
</div>
11 changes: 6 additions & 5 deletions resources/views/livewire/home/questions-for-you.blade.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<div class="mb-12 w-full text-slate-200">
@if ($forYouQuestions->isEmpty())
<section class="rounded-lg">
<p class="my-8 text-center text-lg text-slate-500">
We haven't found any questions that may interest you based on the activity you've done on Pinkary.
</p>
<p class="my-8 text-center text-lg text-slate-500">We haven't found any questions that may interest you based on the activity you've done on Pinkary.</p>
</section>
@else
<section class="mb-12 min-h-screen space-y-10">
@foreach ($forYouQuestions as $question)
<livewire:questions.show :questionId="$question->id" :key="'question-' . $question->id" :inIndex="true" :pinnable="false" />
@endforeach

<x-load-more-button :perPage="$perPage" :paginator="$forYouQuestions"
message="There are no more questions to load, or you have scrolled too far." />
<x-load-more-button
:perPage="$perPage"
:paginator="$forYouQuestions"
message="There are no more questions to load, or you have scrolled too far."
/>
</section>
@endif
</div>
2 changes: 1 addition & 1 deletion resources/views/livewire/links/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class="flex w-11 cursor-move items-center justify-center text-slate-300 opacity-

<div class="flex items-center justify-center">
<div
class="cursor-help hidden min-w-fit items-center gap-1 text-xs group-hover:flex"
class="hidden min-w-fit cursor-help items-center gap-1 text-xs group-hover:flex"
title="Clicked {{ Number::format($link->click_count) }} times"
>
{{ Number::abbreviate($link->click_count) }}
Expand Down
5 changes: 1 addition & 4 deletions resources/views/livewire/questions/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
<div>
<x-textarea wire:model="content" placeholder="Ask a question..." maxlength="255" rows="3" required />

<p class="text-right text-xs text-slate-400">
<span x-text="$wire.content.length"></span>
/ 255
</p>
<p class="text-right text-xs text-slate-400"><span x-text="$wire.content.length"></span> / 255</p>

@error('content')
<x-input-error :messages="$message" class="my-2" />
Expand Down
5 changes: 1 addition & 4 deletions resources/views/livewire/questions/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ class="h-24 w-full resize-none border-none border-transparent bg-transparent tex
rows="3"
></textarea>

<p class="text-right text-xs text-slate-400">
<span x-text="$wire.answer.length"></span>
/ 1000
</p>
<p class="text-right text-xs text-slate-400"><span x-text="$wire.answer.length"></span> / 1000</p>

@error('answer')
<x-input-error :messages="$message" class="mt-2" />
Expand Down
7 changes: 5 additions & 2 deletions resources/views/livewire/questions/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<livewire:questions.show :questionId="$question->id" :key="'question-' . $question->id" :inIndex="true" :pinnable="$pinnable" />
@endforeach

<x-load-more-button :perPage="$perPage" :paginator="$questions"
message="There are no more questions to load, or you have scrolled too far." />
<x-load-more-button
:perPage="$perPage"
:paginator="$questions"
message="There are no more questions to load, or you have scrolled too far."
/>
</section>
6 changes: 2 additions & 4 deletions resources/views/livewire/questions/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ class="flex items-center transition-colors hover:text-slate-400 focus:outline-no
@endif

@php($likesCount = $question->likes()->count())
@if($likesCount)
<p class="ml-1 cursor-click" title="{{ Number::format($likesCount) }} {{ str('like')->plural($likesCount) }}">
{{ Number::abbreviate($likesCount) }} {{ str('like')->plural($likesCount) }}
</p>
@if ($likesCount)
<p class="cursor-click ml-1" title="{{ Number::format($likesCount) }} {{ str('like')->plural($likesCount) }}">{{ Number::abbreviate($likesCount) }} {{ str('like')->plural($likesCount) }}</p>
@endif
</button>
</div>
Expand Down

0 comments on commit ac8b2aa

Please sign in to comment.