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.

style(task): improve prop sidbar, add prop inline (#3318)

Seamuse5343bbb3aac
diff --git a/js/app/packages/app/component/side-panel/SidePanel.tsx b/js/app/packages/app/component/side-panel/SidePanel.tsx
index 321452fc4a..a6052b6d2c 100644
--- a/js/app/packages/app/component/side-panel/SidePanel.tsx
+++ b/js/app/packages/app/component/side-panel/SidePanel.tsx
@@ -237,11 +237,7 @@ function Section(
order: props.order,
component: () => (
<Accordion.Item value={props.id}>
- <Panel
- depth={2}
- style={{ height: 'auto' }}
- class="rounded-lg shadow-md shadow-drop-shadow"
- >
+ <Panel depth={2} style={{ height: 'auto' }} class="rounded-lg">
<Accordion.Header class="group">
<Accordion.Trigger class="px-2 py-3 flex w-full items-center gap-2 text-sm hover:underline">
<CaretRight class="size-3 text-ink-muted transition-transform duration-90 group-data-expanded:rotate-90" />
diff --git a/js/app/packages/block-md/component/InlinePropertyValue.tsx b/js/app/packages/block-md/component/InlinePropertyValue.tsx
new file mode 100644
index 0000000000..9fc257dd9d
--- /dev/null
+++ b/js/app/packages/block-md/component/InlinePropertyValue.tsx
@@ -0,0 +1,210 @@
+import { PropertyTooltip } from '@core/component/Properties/component/propertyValue/PropertyTooltip';
+import { PropertyValueIcon } from '@core/component/Properties/component/propertyValue/PropertyValueIcon';
+import { usePropertiesContext } from '@core/component/Properties/context/PropertiesContext';
+import type { Property } from '@core/component/Properties/types';
+import {
+ formatPropertyValue,
+ getEntityValues,
+ getSelectValues,
+} from '@core/component/Properties/utils';
+import { UserGroup } from '@core/component/UserGroup';
+import { UserIcon } from '@core/component/UserIcon';
+import { tryMacroId, useDisplayNameParts } from '@core/user';
+import CaretDownIcon from '@icon/regular/caret-down.svg';
+import CircleDashedEmpty from '@icon/regular/circle-dashed.svg';
+import { HoverCard, Layer } from '@ui';
+import { cn } from '@ui/utils/classname';
+import { type Component, Show } from 'solid-js';
+
+type InlinePropertyValueProps = {
+ property: Property;
+};
+
+/**
+ * Inline property value for task view when sidebar is closed.
+ * Similar to ListPropertyValue but always shows labels (no container query hiding).
+ */
+export const InlinePropertyValue: Component<InlinePropertyValueProps> = (
+ props
+) => {
+ const isSelect = () =>
+ props.property.valueType === 'SELECT_STRING' ||
+ props.property.valueType === 'SELECT_NUMBER';
+
+ const isEntity = () => props.property.valueType === 'ENTITY';
+
+ return (
+ <Show
+ when={isSelect()}
+ fallback={
+ <Show when={isEntity()}>
+ <InlineEntityValue property={props.property} />
+ </Show>
+ }
+ >
+ <InlineSelectValue property={props.property} />
+ </Show>
+ );
+};
+
+const buttonClass = (isReadOnly: boolean) =>
+ cn(
+ 'inline-flex items-center gap-1.5 min-w-0',
+ 'px-2 py-1 leading-tight text-left rounded-sm',
+ 'cursor-default bg-surface',
+ {
+ 'hover:bg-hover': !isReadOnly,
+ }
+ );
+
+const InlineSelectValue: Component<{ property: Property }> = (props) => {
+ const context = usePropertiesContext();
+
+ const isReadOnly = () => props.property.isMetadata || !context.canEdit;
+
+ const handleClick = (e: MouseEvent) => {
+ e.stopPropagation();
+ if (isReadOnly()) return;
+ context.openPropertyEditor(props.property, e.currentTarget as HTMLElement);
+ };
+
+ const firstValue = () => getSelectValues(props.property)[0];
+
+ const displayText = () => {
+ const value = firstValue();
+ if (value !== undefined) {
+ return formatPropertyValue(props.property, value);
+ }
+ return 'None';
+ };
+
+ return (
+ <HoverCard content={<PropertyTooltip property={props.property} />}>
+ <Layer depth={2}>
+ <button
+ type="button"
+ onClick={handleClick}
+ class={cn(buttonClass(isReadOnly()), {
+ 'text-ink-extra-muted/50': !firstValue(),
+ })}
+ >
+ <Show
+ when={firstValue()}
+ fallback={<CircleDashedEmpty class="size-3 shrink-0" />}
+ >
+ {(value) => <PropertyValueIcon optionId={value()} />}
+ </Show>
+ <span
+ class={cn('truncate', {
+ 'text-ink-extra-muted opacity-50': firstValue() === undefined,
+ })}
+ >
+ {displayText()}
+ </span>
+ <Show when={!isReadOnly()}>
+ <CaretDownIcon class="size-3 shrink-0" />
+ </Show>
+ </button>
+ </Layer>
+ </HoverCard>
+ );
+};
+
+/** Single user display with icon + truncated first name */
+const SingleUserValue: Component<{ userId: string }> = (props) => {
+ const nameParts = () => useDisplayNameParts(tryMacroId(props.userId));
+ const firstName = () => nameParts().firstName() || 'Unknown';
+
+ return (
+ <div class="flex items-center gap-1.5 min-w-0">
+ <UserIcon id={props.userId} size="sm" suppressClick showTooltip />
+ <span class="truncate">{firstName()}</span>
+ </div>
+ );
+};
+
+/** Multi-user display with avatar stack + count */
+const MultiUserValue: Component<{ userIds: string[] }> = (props) => {
+ const count = () => props.userIds.length;
+ return (
+ <div class="flex items-center gap-1.5 min-w-0">
+ <UserGroup
+ userIds={props.userIds}
+ size="sm"
+ suppressClick
+ showTooltip
+ maxUsers={2}
+ />
+ <span class="truncate">
+ {count() === 2 ? '2 people' : `${count()} people`}
+ </span>
+ </div>
+ );
+};
+
+const InlineEntityValue: Component<{ property: Property }> = (props) => {
+ const context = usePropertiesContext();
+
+ const isReadOnly = () => props.property.isMetadata || !context.canEdit;
+
+ const handleClick = (e: MouseEvent) => {
+ e.stopPropagation();
+ if (isReadOnly()) return;
+ context.openPropertyEditor(props.property, e.currentTarget as HTMLElement);
+ };
+
+ const entities = () => getEntityValues(props.property);
+ const isUser = () => props.property.specificEntityType === 'USER';
+ const hasValues = () => entities().length > 0;
+ const isSingleUser = () => isUser() && entities().length === 1;
+
+ return (
+ <Layer depth={2}>
+ <HoverCard content={<PropertyTooltip property={props.property} />}>
+ <button
+ type="button"
+ onClick={handleClick}
+ class={cn(buttonClass(isReadOnly()), {
+ 'text-ink-extra-muted/50': !hasValues(),
+ })}
+ >
+ <Show
+ when={hasValues()}
+ fallback={
+ <>
+ <CircleDashedEmpty class="size-3 shrink-0" />
+ <span class="truncate">None</span>
+ </>
+ }
+ >
+ <Show
+ when={isUser()}
+ fallback={
+ <span class="truncate">
+ {entities().length === 1
+ ? '1 item'
+ : `${entities().length} items`}
+ </span>
+ }
+ >
+ {/* Single user: show icon + first name */}
+ <Show
+ when={isSingleUser()}
+ fallback={
+ <MultiUserValue
+ userIds={entities().map((e) => e.entity_id)}
+ />
+ }
+ >
+ <SingleUserValue userId={entities()[0].entity_id} />
+ </Show>
+ </Show>
+ </Show>
+ <Show when={!isReadOnly()}>
+ <CaretDownIcon class="size-3 shrink-0" />
+ </Show>
+ </button>
+ </HoverCard>
+ </Layer>
+ );
+};
diff --git a/js/app/packages/block-md/component/InlineTaskProperties.tsx b/js/app/packages/block-md/component/InlineTaskProperties.tsx
new file mode 100644
index 0000000000..de0ad8175f
--- /dev/null
+++ b/js/app/packages/block-md/component/InlineTaskProperties.tsx
@@ -0,0 +1,99 @@
+import { useSidePanel } from '@app/component/side-panel';
+import { useBlockAliasedName, useBlockId } from '@core/block';
+import { Modals } from '@core/component/Properties/component/modal';
+import { SYSTEM_PROPERTY_IDS } from '@core/component/Properties/constants';
+import {
+ PropertiesProvider,
+ type PropertySaveHandler,
+} from '@core/component/Properties/context/PropertiesContext';
+import { useEntityProperties } from '@core/component/Properties/hooks';
+import type {
+ Property,
+ PropertyApiValues,
+} from '@core/component/Properties/types';
+import { useCanEdit } from '@core/signal/permissions';
+import { useBlockDocumentName } from '@core/util/currentBlockDocumentName';
+import { useBulkSaveEntityPropertiesMutation } from '@queries/properties/entity';
+import { createMemo, For, Show, Suspense } from 'solid-js';
+import { InlinePropertyValue } from './InlinePropertyValue';
+
+/**
+ * Inline task properties shown below the title when the side panel is closed.
+ * Displays status, priority, and assignees in a single row, editable like in list view.
+ */
+export function InlineTaskProperties() {
+ const blockId = useBlockId();
+ const blockName = useBlockAliasedName();
+ const sidePanel = useSidePanel();
+ const canEdit = useCanEdit();
+ const documentName = useBlockDocumentName();
+
+ const isTask = () => blockName === 'task';
+
+ // Only show when side panel is closed or doesn't exist
+ const shouldShow = () => {
+ if (!isTask()) return false;
+ // If no side panel context, show properties inline
+ if (!sidePanel) return true;
+ // In narrow mode, always show (side panel is an overlay)
+ if (sidePanel.isNarrow()) return true;
+ // In wide mode, show when panel is closed
+ return !sidePanel.isOpen();
+ };
+
+ const { properties, refetch } = useEntityProperties(blockId, 'TASK', false);
+
+ // Get the three main properties we want to display
+ const inlineProperties = createMemo(() => {
+ const props = properties();
+ const ids = [
+ SYSTEM_PROPERTY_IDS.STATUS,
+ SYSTEM_PROPERTY_IDS.PRIORITY,
+ SYSTEM_PROPERTY_IDS.ASSIGNEES,
+ ];
+ return ids
+ .map((id) => props.find((p) => p.propertyDefinitionId === id))
+ .filter((p): p is Property => p !== undefined);
+ });
+
+ const saveMutation = useBulkSaveEntityPropertiesMutation();
+
+ const saveOne = (property: Property, apiValues: PropertyApiValues) =>
+ saveMutation.mutateAsync({
+ properties: [
+ { entityId: blockId, entityType: 'TASK', property, apiValues },
+ ],
+ });
+
+ const saveHandler: PropertySaveHandler = {
+ saveProperty: (property, value) => saveOne(property, value),
+ saveDate: (property, date) =>
+ saveOne(property, { valueType: 'DATE', value: date }),
+ };
+
+ return (
+ <Show when={shouldShow()}>
+ <Suspense>
+ <Show when={inlineProperties().length > 0}>
+ <PropertiesProvider
+ entityType="TASK"
+ canEdit={canEdit()}
+ documentName={documentName()}
+ properties={inlineProperties}
+ onRefresh={refetch}
+ onPropertyAdded={refetch}
+ onPropertyDeleted={refetch}
+ saveHandler={saveHandler}
+ >
+ <div class="flex flex-row flex-wrap items-center gap-1 text-base mb-6">
+ <For each={inlineProperties()}>
+ {(property) => <InlinePropertyValue property={property} />}
+ </For>
+ </div>
+ <Modals />
+ </PropertiesProvider>
+ </Show>
+ </Suspense>
+ </Show>
+ );
+}
diff --git a/js/app/packages/block-md/component/Notebook.tsx b/js/app/packages/block-md/component/Notebook.tsx
index 7ef4db09cb..fdc418e61f 100644
--- a/js/app/packages/block-md/component/Notebook.tsx
+++ b/js/app/packages/block-md/component/Notebook.tsx
@@ -31,6 +31,7 @@ import {
Show,
untrack,
} from 'solid-js';
+import { InlineTaskProperties } from './InlineTaskProperties';
import { InstructionsEditor } from './InstructionsEditor';
import { MarkdownEditor } from './MarkdownEditor';
import { TaskDiscussion } from './TaskDiscussion';
@@ -264,6 +265,7 @@ export function Notebook() {
<div class={contentDivClasses()} ref={contentRef}>
<TitleEditor autoFocusOnMount={!navigatedFromJK()} />
<div class="spacer h-6" />
+ <InlineTaskProperties />
<ParamsProvider>
<MarkdownEditor autoFocusOnMount={!navigatedFromJK()} />
<Show when={ENABLE_RAIL_CHAT_TASK_COMMENTS && isTask}>
diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx
index 3bc9b17929..85fbafc886 100644
--- a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx
+++ b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx
@@ -76,9 +76,9 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {
}
>
<div
- class="grid gap-x-4 gap-y-2 pt-2 min-w-fit"
+ class="grid gap-x-2 gap-y-2 pt-2 min-w-fit"
style={{
- 'grid-template-columns': `repeat(${props.columns ?? 1}, minmax(4rem, 12rem) minmax(8rem, 1fr))`,
+ 'grid-template-columns': `repeat(${props.columns ?? 1}, auto minmax(8rem, 1fr))`,
}}
>
{/* Metadata properties */}
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/CondensedPropertyValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/CondensedPropertyValue.tsx
index bacf646647..5dc420a49b 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/CondensedPropertyValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/CondensedPropertyValue.tsx
@@ -49,9 +49,9 @@ export const CondensedPropertyValue: Component<CondensedPropertyValueProps> = (
<HoverCard content={<PropertyTooltip property={props.property} />}>
<div
class={cn(
- 'inline-flex items-center text-xs leading-none text-ink-muted shrink-0 p-1.5 h-6.5 transition-colors',
+ 'inline-flex items-center text-xs leading-none text-ink-muted shrink-0 p-1.5 h-6.5 transition-colors rounded-sm',
{
- 'hover:border-edge-muted hover:bg-hover': props.canEdit,
+ 'hover:bg-hover': props.canEdit,
'opacity-50': !validValue(),
}
)}
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/DateValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/DateValue.tsx
index 81c88ab724..bb76412c65 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/DateValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/DateValue.tsx
@@ -51,29 +51,26 @@ export const DateValue: Component<PropertyValueProps> = (props) => {
return (
<div
- class="relative inline-flex max-w-full shrink-0"
+ class={cn('relative inline-flex max-w-full shrink-0 rounded-sm', {
+ 'hover:bg-hover': props.canEdit,
+ })}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<button
onClick={handleClick}
- class={cn(
- 'inline-flex items-center leading-none shrink-0 p-1.5 h-6.5 transition-colors border border-edge-muted',
- {
- 'hover:border-edge-muted hover:bg-hover': props.canEdit,
- }
- )}
+ class="inline-flex items-center leading-none shrink-0 p-1.5 h-6.5 transition-colors"
>
<Show when={displayValue} fallback={<EmptyValue />}>
<span class="block truncate max-w-full">{displayValue}</span>
</Show>
</button>
<Show when={!isReadOnly() && isHovered() && displayValue && !isSaving()}>
- <div class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40%">
+ <div class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40% rounded-r-sm">
<button
onClick={handleDelete}
disabled={isSaving()}
- class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink"
+ class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink rounded-sm"
>
<DeleteIcon class="size-3" />
</button>
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/EntityIcon.tsx b/js/app/packages/core/component/Properties/component/propertyValue/EntityIcon.tsx
index 41388dbbed..e58b1e4513 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/EntityIcon.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/EntityIcon.tsx
@@ -58,12 +58,12 @@ export const EntityIcon: Component<EntityValueDisplayProps> = (props) => {
return (
<div
ref={containerRef}
- class="relative inline-flex max-w-35 shrink-0"
+ class="relative inline-flex max-w-35 shrink-0 rounded-sm hover:bg-hover"
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<div
- class="px-2 py-0.5 border border-edge-muted hover:bg-hover bg-transparent text-ink inline-flex items-center w-full"
+ class="px-2 py-0.5 bg-transparent text-ink inline-flex items-center w-full"
onClick={handleClick}
role={props.canEdit && props.onEdit ? 'button' : undefined}
tabIndex={props.canEdit && props.onEdit ? 0 : undefined}
@@ -75,14 +75,14 @@ export const EntityIcon: Component<EntityValueDisplayProps> = (props) => {
}
>
<div
- class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40%"
+ class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40% rounded-r-sm"
onClick={(e: MouseEvent) => e.stopPropagation()}
>
<Show when={props.onRemove}>
<button
onClick={() => props.onRemove!()}
disabled={props.isSaving}
- class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink"
+ class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink rounded-sm"
>
<DeleteIcon class="size-3" />
</button>
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/EntityValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/EntityValue.tsx
index 518f7931bb..4dd9fa54fc 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/EntityValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/EntityValue.tsx
@@ -77,7 +77,7 @@ export const EntityValue: Component<PropertyValueProps> = (props) => {
when={!isReadOnly()}
fallback={
<Show when={entities.length === 0}>
- <div class="text-ink-muted px-2 py-0.5 border border-edge-muted bg-transparent inline-block shrink-0">
+ <div class="text-ink-muted px-2 py-0.5 bg-transparent inline-block shrink-0 rounded-sm">
<EmptyValue />
</div>
</Show>
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/LinkValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/LinkValue.tsx
index 846b1c2089..f1ebf92c27 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/LinkValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/LinkValue.tsx
@@ -136,7 +136,7 @@ export const LinkValue: Component<PropertyValueProps> = (props) => {
}}
placeholder="Enter URL..."
disabled={isSaving()}
- class="text-left px-2 py-0.5 border border-edge-muted bg-transparent focus:outline-none focus:border-accent text-ink inline-block shrink-0"
+ class="text-left px-2 py-0.5 bg-transparent focus:outline-none text-ink inline-block shrink-0 rounded-sm"
/>
<Show when={error()}>
<div class="text-failure-ink mt-1 w-full">{error()}</div>
@@ -164,7 +164,7 @@ export const LinkValue: Component<PropertyValueProps> = (props) => {
when={!isReadOnly()}
fallback={
<Show when={linkValues.length === 0}>
- <div class="text-ink-muted px-2 py-0.5 border border-edge-muted bg-transparent inline-block shrink-0">
+ <div class="text-ink-muted px-2 py-0.5 bg-transparent inline-block shrink-0 rounded-sm">
<EmptyValue />
</div>
</Show>
@@ -235,13 +235,13 @@ const LinkDisplay: Component<LinkDisplayProps> = (props) => {
return (
<div
- class="relative inline-flex max-w-50 shrink-0"
+ class="relative inline-flex max-w-50 shrink-0 rounded-sm hover:bg-hover"
onMouseEnter={() => props.setHoveredLink(props.url)}
onMouseLeave={() => props.setHoveredLink(null)}
>
<button
onClick={handleLinkClick}
- class="text-left px-2 py-0.5 border border-edge-muted bg-transparent text-ink inline-flex items-center gap-2 w-full cursor-default"
+ class="text-left px-2 py-0.5 bg-transparent text-ink inline-flex items-center gap-2 w-full cursor-default"
title={props.url}
disabled={props.isRemoving}
>
@@ -270,11 +270,11 @@ const LinkDisplay: Component<LinkDisplayProps> = (props) => {
<span class="truncate flex-1 text-ink">{title()}</span>
</button>
<Show when={props.canEdit && isHovered() && !props.isRemoving}>
- <div class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40%">
+ <div class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40% rounded-r-sm">
<button
onClick={handleRemoveClick}
disabled={props.isRemoving}
- class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink"
+ class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink rounded-sm"
>
<DeleteIcon class="size-3" />
</button>
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/NumberValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/NumberValue.tsx
index a7e95fcb5d..3f50c52f42 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/NumberValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/NumberValue.tsx
@@ -52,7 +52,7 @@ export const NumberValue: Component<PropertyValueProps> = (props) => {
fallback={
<button
onClick={handleClick}
- class="text-left px-2 py-0.5 border border-edge-muted bg-transparent block max-w-full wrap-break-word cursor-default"
+ class="text-left px-2 py-0.5 bg-transparent block max-w-full wrap-break-word cursor-default rounded-sm"
classList={{
'text-ink': supportsInline(),
'text-ink-muted': !supportsInline(),
@@ -78,7 +78,7 @@ export const NumberValue: Component<PropertyValueProps> = (props) => {
onKeyDown={handleKeyDown}
disabled={editor.isSaving()}
placeholder="Enter number..."
- class="w-full text-left text-ink px-2 py-0.5 border border-edge-muted bg-transparent focus:outline-none focus:border-accent"
+ class="w-full text-left text-ink px-2 py-0.5 bg-transparent focus:outline-none rounded-sm"
/>
</Show>
);
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/PropertyTooltip.tsx b/js/app/packages/core/component/Properties/component/propertyValue/PropertyTooltip.tsx
index fd12d94376..814eba7f7d 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/PropertyTooltip.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/PropertyTooltip.tsx
@@ -105,7 +105,7 @@ const TooltipWrapper = (props: {
};
const ValueContainer = (props: { children: JSX.Element }) => (
- <div class="inline-flex items-center gap-1.5 px-2 py-1 text-xs leading-none text-ink-muted border border-edge-muted h-fit w-fit">
+ <div class="inline-flex items-center gap-1.5 px-2 py-1 text-xs leading-none text-ink-muted h-fit w-fit rounded-sm">
{props.children}
</div>
);
@@ -308,7 +308,7 @@ const LinkValuePill = (props: { url: string }) => {
href={props.url}
target="_blank"
rel="noopener noreferrer"
- class="inline-flex items-center gap-1.5 px-2 py-1 text-xs leading-none text-ink-muted border border-edge-muted h-fit w-fit"
+ class="inline-flex items-center gap-1.5 px-2 py-1 text-xs leading-none text-ink-muted h-fit w-fit rounded-sm"
title={props.url}
>
<Show
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/SelectValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/SelectValue.tsx
index b42d5867a6..561e79b9d3 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/SelectValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/SelectValue.tsx
@@ -64,7 +64,7 @@ export const SelectValue: Component<PropertyValueProps> = (props) => {
const isHovered = () => hoveredValue() === value;
return (
<div
- class="relative inline-flex max-w-35 shrink-0"
+ class="relative inline-flex max-w-35 shrink-0 rounded-sm hover:bg-hover"
onMouseEnter={() => setHoveredValue(value)}
onMouseLeave={() => setHoveredValue(null)}
>
@@ -82,11 +82,11 @@ export const SelectValue: Component<PropertyValueProps> = (props) => {
<span class="block truncate">{formatted}</span>
</div>
<Show when={!isReadOnly() && isHovered() && !isSaving()}>
- <div class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40%">
+ <div class="absolute right-0 inset-y-0 flex items-center pr-1 pl-2 bg-linear-to-r from-transparent to-hover to-40% rounded-r-sm">
<button
onClick={() => handleRemoveValue(value)}
disabled={isSaving()}
- class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink"
+ class="size-4 p-0.5 flex items-center justify-center text-ink-muted hover:text-failure-ink rounded-sm"
>
<DeleteIcon class="size-3" />
</button>
@@ -100,7 +100,7 @@ export const SelectValue: Component<PropertyValueProps> = (props) => {
when={!isReadOnly()}
fallback={
<Show when={displayValues.length === 0}>
- <div class="text-ink-muted px-2 py-0.5 border border-edge-muted bg-transparent inline-block shrink-0">
+ <div class="text-ink-muted px-2 py-0.5 bg-transparent inline-block shrink-0 rounded-sm">
<EmptyValue />
</div>
</Show>
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/TextValue.tsx b/js/app/packages/core/component/Properties/component/propertyValue/TextValue.tsx
index 4e5b86926b..9b109081bc 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/TextValue.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/TextValue.tsx
@@ -51,7 +51,7 @@ export const TextValue: Component<PropertyValueProps> = (props) => {
fallback={
<button
onClick={handleClick}
- class="text-left px-2 py-0.5 border border-edge-muted bg-transparent block max-w-full wrap-break-word cursor-default"
+ class="text-left px-2 py-0.5 bg-transparent block max-w-full wrap-break-word cursor-default rounded-sm"
classList={{
'text-ink': supportsInline(),
'text-ink-muted': !supportsInline(),
@@ -81,7 +81,7 @@ export const TextValue: Component<PropertyValueProps> = (props) => {
onBlur={editor.save}
onKeyDown={handleKeyDown}
disabled={editor.isSaving()}
- class="w-full field-sizing-content resize-none text-left text-ink px-2 py-0.5 border border-edge-muted bg-transparent focus:outline-none focus:border-accent"
+ class="w-full field-sizing-content resize-none text-left text-ink px-2 py-0.5 bg-transparent focus:outline-none rounded-sm"
/>
</Show>
);
diff --git a/js/app/packages/core/component/Properties/component/propertyValue/ValueComponents.tsx b/js/app/packages/core/component/Properties/component/propertyValue/ValueComponents.tsx
index 0742e3fbf5..6293e91cd1 100644
--- a/js/app/packages/core/component/Properties/component/propertyValue/ValueComponents.tsx
+++ b/js/app/packages/core/component/Properties/component/propertyValue/ValueComponents.tsx
@@ -32,7 +32,7 @@ export type PropertyValueProps = {
/** CSS classes for common property value UI patterns */
const STYLES = {
addButton:
- 'text-ink-muted hover:text-ink hover:bg-hover px-2 py-0.5 border border-edge-muted inline-block shrink-0',
+ 'text-ink-muted hover:text-ink hover:bg-hover px-2 py-0.5 inline-block shrink-0 rounded-sm',
} as const;
/**
@@ -80,7 +80,7 @@ export const PropertyValueButton: Component<{
disabled={props.disabled}
title={props.title}
class={twMerge(
- 'text-left px-2 py-0.5 border border-edge-muted bg-transparent cursor-default',
+ 'text-left px-2 py-0.5 bg-transparent cursor-default rounded-sm',
props.class
)}
classList={{
diff --git a/js/app/packages/core/component/Properties/styles/styles.ts b/js/app/packages/core/component/Properties/styles/styles.ts
index 111b145d62..0275c736fe 100644
--- a/js/app/packages/core/component/Properties/styles/styles.ts
+++ b/js/app/packages/core/component/Properties/styles/styles.ts
@@ -17,7 +17,7 @@ export const PROPERTY_STYLES = {
value: {
multiButton:
- 'text-right text-ink hover:bg-hover px-2 py-0.5 border border-edge-muted inline-flex items-center gap-2 shrink-0 max-w-[140px] wrap-break-word',
+ 'text-right text-ink px-2 py-0.5 inline-flex items-center gap-2 shrink-0 max-w-[140px] wrap-break-word rounded-sm',
},
checkbox: {