Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(soup): unread indicator wasn't showing (#814)

teo8549684a4e5c
diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
index eeecfddc1c..cf166c13b9 100644
--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
@@ -923,7 +923,11 @@ export function EntityWithEverything(
<button
type="button"
class="col-1 size-full relative group/button flex items-center justify-center bracket-never @max-md/split:hidden"
+ onMouseDown={(e) => {
+ e.stopPropagation();
+ }}
onClick={(e) => {
+ e.stopPropagation();
props.onChecked?.(!props.checked, e.shiftKey);
}}
data-blocks-navigation
@@ -940,8 +944,14 @@ export function EntityWithEverything(
<CheckIcon class="w-full h-full text-panel" />
</Show>
</div>
- <Show when={props.showLeftColumnIndicator && !props.checked}>
- <div class="absolute inset-0 flex items-center justify-center -z-1 @max-md/split:hidden">
+ <Show
+ when={
+ props.showLeftColumnIndicator &&
+ !props.checked &&
+ !props.highlighted
+ }
+ >
+ <div class="absolute inset-0 flex items-center justify-center group-hover/button:opacity-0 @max-md/split:hidden">
<UnreadIndicator active={props.unreadIndicatorActive} />
</div>
</Show>