diff --git a/apps/app-frontend/src/components/RowDisplay.vue b/apps/app-frontend/src/components/RowDisplay.vue index 363f07441d..a8e8970aed 100644 --- a/apps/app-frontend/src/components/RowDisplay.vue +++ b/apps/app-frontend/src/components/RowDisplay.vue @@ -18,8 +18,8 @@ import { useRouter } from 'vue-router' import ContextMenu from '@/components/ui/ContextMenu.vue' import Instance from '@/components/ui/Instance.vue' +import LegacyProjectCard from '@/components/ui/LegacyProjectCard.vue' import ConfirmModalWrapper from '@/components/ui/modal/ConfirmModalWrapper.vue' -import ProjectCard from '@/components/ui/ProjectCard.vue' import { trackEvent } from '@/helpers/analytics' import { get_by_profile_path } from '@/helpers/process.js' import { duplicate, kill, remove, run } from '@/helpers/profile.js' @@ -270,7 +270,7 @@ onUnmounted(() => { />
- -
-
- -
-
-
- - {{ project.title }} - - by {{ project.author }} -
-
- {{ project.description }} -
-
- -
+ +
- - +
@@ -159,7 +165,7 @@ - - diff --git a/packages/ui/src/components/base/SmartClickable.vue b/packages/ui/src/components/base/SmartClickable.vue index f0ae684672..5ed15d8ded 100644 --- a/packages/ui/src/components/base/SmartClickable.vue +++ b/packages/ui/src/components/base/SmartClickable.vue @@ -39,22 +39,26 @@ defineOptions({ } // When clickable is being hovered or focus-visible, give contents an effect - &:has(> *:first-child:hover, > *:first-child:focus-visible) .smart-clickable__contents { - filter: var(--hover-filter-weak); - + :first-child:hover + .smart-clickable__contents, + :first-child:focus-visible + .smart-clickable__contents { // Utility classes for contents :deep(.smart-clickable\:underline-on-hover) { text-decoration: underline; } - - // Utility classes for contents :deep(.smart-clickable\:highlight-on-hover) { filter: brightness(var(--hover-brightness, 1.25)); } } + :first-child:focus-visible + .smart-clickable__contents { + // Utility classes for contents + :deep(.smart-clickable\:outline-on-focus) { + outline: 0.25rem solid var(--color-focus-ring); + } + } + // When clickable is being clicked, give contents an effect - &:has(> *:first-child:active) .smart-clickable__contents { + :first-child:active + .smart-clickable__contents { scale: 0.97; } } diff --git a/packages/ui/src/components/base/TagItem.vue b/packages/ui/src/components/base/TagItem.vue index 3c06549f3a..da33acde91 100644 --- a/packages/ui/src/components/base/TagItem.vue +++ b/packages/ui/src/components/base/TagItem.vue @@ -1,15 +1,12 @@ @@ -17,4 +14,7 @@ defineProps<{ action?: (event: MouseEvent) => void }>() + +const baseClass = + 'bg-[--_bg-color,var(--color-button-bg)] text-nowrap border-[--_bg-color,var(--surface-5)] border-[1px] border-solid px-2 py-1 leading-none rounded-full font-normal text-sm inline-flex items-center gap-1 text-[--_color,var(--color-secondary)] [&>svg]:shrink-0 [&>svg]:h-4 [&>svg]:w-4' diff --git a/packages/ui/src/components/base/TagTagItem.vue b/packages/ui/src/components/base/TagTagItem.vue new file mode 100644 index 0000000000..9a306a9977 --- /dev/null +++ b/packages/ui/src/components/base/TagTagItem.vue @@ -0,0 +1,31 @@ + + diff --git a/packages/ui/src/components/base/index.ts b/packages/ui/src/components/base/index.ts index 9494e461dc..11e3cd460a 100644 --- a/packages/ui/src/components/base/index.ts +++ b/packages/ui/src/components/base/index.ts @@ -49,7 +49,6 @@ export { default as PopoutMenu } from './PopoutMenu.vue' export { default as PreviewSelectButton } from './PreviewSelectButton.vue' export { default as ProgressBar } from './ProgressBar.vue' export { default as ProgressSpinner } from './ProgressSpinner.vue' -export { default as ProjectCard } from './ProjectCard.vue' export { default as RadialHeader } from './RadialHeader.vue' export { default as RadioButtons } from './RadioButtons.vue' export { default as ScrollablePanel } from './ScrollablePanel.vue' @@ -61,6 +60,7 @@ export { default as SmartClickable } from './SmartClickable.vue' export type { TableColumn } from './Table.vue' export { default as Table } from './Table.vue' export { default as TagItem } from './TagItem.vue' +export { default as TagTagItem } from './TagTagItem.vue' export { default as Timeline } from './Timeline.vue' export { default as Toggle } from './Toggle.vue' export { default as UnsavedChangesPopup } from './UnsavedChangesPopup.vue' diff --git a/packages/ui/src/components/project/NewProjectCard.vue b/packages/ui/src/components/project/NewProjectCard.vue deleted file mode 100644 index 7e8378bdd1..0000000000 --- a/packages/ui/src/components/project/NewProjectCard.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/packages/ui/src/components/project/ProjectCardList.vue b/packages/ui/src/components/project/ProjectCardList.vue new file mode 100644 index 0000000000..934162e3fe --- /dev/null +++ b/packages/ui/src/components/project/ProjectCardList.vue @@ -0,0 +1,28 @@ + + + diff --git a/packages/ui/src/components/project/ProjectHeader.vue b/packages/ui/src/components/project/ProjectHeader.vue index 7463028ba3..715529bb5e 100644 --- a/packages/ui/src/components/project/ProjectHeader.vue +++ b/packages/ui/src/components/project/ProjectHeader.vue @@ -15,7 +15,11 @@