enzostvs HF staff commited on
Commit
9043929
·
1 Parent(s): a764df6

reactions are bigger

Browse files
src/lib/components/community/reactions/Add.svelte CHANGED
@@ -46,23 +46,23 @@
46
 
47
  <div
48
  id="{uuid}"
49
- class="rounded-full text-sm text-white/80 hover:text-white font-bold flex items-center justify-start gap-1.5 px-1.5 py-1 border border-dashed border-white/80 hover:border-white relative z-[2]"
50
  class:!border-white={isOpen}
51
  class:!text-white={isOpen}
52
  class:opacity-0={count >= 4}
53
  >
54
  <button on:click={() => isOpen = !isOpen}>
55
- <Icon icon="fluent:emoji-add-16-regular" class="w-5 h-5" />
56
  </button>
57
  <div
58
- class={`opacity-0 pointer-events-none absolute max-w-max flex items-center justify-center bg-white px-1 py-1 rounded-full gap-0 text-xl ${count > 0 ? "-translate-y-[calc(100%+8px)] -translate-x-1/2 left-0 top-0" : "right-0 translate-x-[calc(100%+8px)]"}`}
59
  class:opacity-100={isOpen}
60
  class:pointer-events-auto={isOpen}
61
  >
62
  {#each AVAILABLE_EMOJIS as emoji}
63
  <UserIsLogged>
64
  <button
65
- class="w-8 h-8 hover:bg-neutral-200 rounded-full text-center flex items-center justify-center"
66
  on:click={() => handleReaction(emoji)}
67
  >
68
  {emoji}
 
46
 
47
  <div
48
  id="{uuid}"
49
+ class="rounded-full text-sm text-white/80 hover:text-white font-bold flex items-center justify-start gap-1.5 px-2.5 py-1 border border-dashed border-white/80 hover:border-white relative z-[2]"
50
  class:!border-white={isOpen}
51
  class:!text-white={isOpen}
52
  class:opacity-0={count >= 4}
53
  >
54
  <button on:click={() => isOpen = !isOpen}>
55
+ <Icon icon="fluent:emoji-add-16-regular" class="w-6 h-6" />
56
  </button>
57
  <div
58
+ class={`opacity-0 pointer-events-none absolute max-w-max flex items-center justify-center bg-white px-2 py-1 rounded-full gap-0.5 text-2xl ${count > 0 ? "-translate-y-[calc(100%+8px)] -translate-x-1/2 left-0 top-0" : "right-0 translate-x-[calc(100%+8px)]"}`}
59
  class:opacity-100={isOpen}
60
  class:pointer-events-auto={isOpen}
61
  >
62
  {#each AVAILABLE_EMOJIS as emoji}
63
  <UserIsLogged>
64
  <button
65
+ class="w-8 h-8 hover:bg-neutral-200 rounded-full text-center text flex items-center justify-center"
66
  on:click={() => handleReaction(emoji)}
67
  >
68
  {emoji}
src/lib/components/community/reactions/Reaction.svelte CHANGED
@@ -23,7 +23,7 @@
23
 
24
  <UserIsLogged>
25
  <button
26
- class="rounded-full bg-white text-sm text-neutral-800 font-bold flex items-center justify-start gap-1.5 px-2.5 py-1 border border-white hover:bg-neutral-200"
27
  on:click={() => handleReaction(emoji)}
28
  >
29
  <span>{emoji}</span>
 
23
 
24
  <UserIsLogged>
25
  <button
26
+ class="rounded-full bg-white text-base text-neutral-800 font-bold flex items-center justify-start gap-1.5 px-3 py-1.5 border border-white hover:bg-neutral-200"
27
  on:click={() => handleReaction(emoji)}
28
  >
29
  <span>{emoji}</span>