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(channel): keep attachment remove button opaque on hover (#6700)

Peter Chinman294bd2c1c53d
diff --git a/apps/web/src/features/channel/Input/Attachments.tsx b/apps/web/src/features/channel/Input/Attachments.tsx
index 74417c4065..fb1df33365 100644
--- a/apps/web/src/features/channel/Input/Attachments.tsx
+++ b/apps/web/src/features/channel/Input/Attachments.tsx
@@ -42,7 +42,9 @@ function RemoveButton(props: {
<button
type="button"
class={cn(
- 'hover:bg-hover hover-transition-bg rounded-md p-1 [@media(hover:none)]:p-2 items-center flex',
+ // Hover/press feedback is painted as a scrim over the button's own
+ // background so the media variant's `bg-surface` chip stays opaque.
+ 'not-touch:hover:overlay-hover not-touch:active:overlay-active rounded-md p-1 [@media(hover:none)]:p-2 items-center flex',
props.class
)}
onClick={(event) => {
diff --git a/apps/web/src/features/notifications/vitest.config.ts b/apps/web/src/features/notifications/vitest.config.ts
index eb7caf7ba4..d9fe748de3 100644
--- a/apps/web/src/features/notifications/vitest.config.ts
+++ b/apps/web/src/features/notifications/vitest.config.ts
@@ -3,12 +3,7 @@ import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
- plugins: [
- tsconfigPaths({
- root: '../../../',
- }),
- solidPlugin(),
- ],
+ plugins: [tsconfigPaths(), solidPlugin()],
test: {
environment: 'jsdom',
globals: true,
diff --git a/apps/web/src/lib/core/vitest.config.ts b/apps/web/src/lib/core/vitest.config.ts
index 3b2ad1c1bd..d3aed2574a 100644
--- a/apps/web/src/lib/core/vitest.config.ts
+++ b/apps/web/src/lib/core/vitest.config.ts
@@ -7,9 +7,7 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
- tsconfigPaths({
- root: '../../../',
- }),
+ tsconfigPaths(),
solidPlugin(),
solidSvg({ defaultAsComponent: true }),
wasm(),
diff --git a/apps/web/src/lib/queries/vitest.config.ts b/apps/web/src/lib/queries/vitest.config.ts
index 0f39359dd2..8be6b7ab59 100644
--- a/apps/web/src/lib/queries/vitest.config.ts
+++ b/apps/web/src/lib/queries/vitest.config.ts
@@ -3,12 +3,7 @@ import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
- plugins: [
- tsconfigPaths({
- root: '../../../',
- }),
- solidPlugin(),
- ],
+ plugins: [tsconfigPaths(), solidPlugin()],
test: {
environment: 'jsdom',
globals: true,