Skip to content

Commit d3e6b0d

Browse files
committed
feat: add css for pre build list
1 parent a9945c7 commit d3e6b0d

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

src/Shared/Components/Plugin/PluginCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PluginCard = ({
2323

2424
return (
2525
<div
26-
className={`p-12 flexbox dc__gap-16 dc__tab-focus dc__visible-hover dc__visible-hover--parent ${showCardBorder ? 'dc__border br-4 dc__hover-n50' : ''}`}
26+
className={`p-12 flexbox dc__gap-16 dc__tab-focus plugin-card dc__visible-hover dc__visible-hover--parent ${showCardBorder ? 'dc__border br-4 dc__hover-n50' : ''}`}
2727
role="button"
2828
tabIndex={0}
2929
onClick={handleSelection}
@@ -61,7 +61,7 @@ const PluginCard = ({
6161
<div className="flexbox-col dc__gap-8">
6262
<div className="flexbox-col dc__gap-4">
6363
<div className="flexbox dc__gap-4">
64-
<h4 className="m-0 dc__truncate cn-9 fs-13 fw-6 lh-20">{name}</h4>
64+
<h4 className="m-0 dc__truncate cn-9 fs-13 fw-6 lh-20 plugin-card__title">{name}</h4>
6565
{!isSelectable && (
6666
<span className="dc__truncate cn-7 fs-12 fw-4 lh-20">({pluginVersion})</span>
6767
)}

src/Shared/Components/Plugin/PluginListContainer.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { APIResponseHandler } from '../APIResponseHandler'
44
import PluginTagSelect from './PluginTagSelect'
55
import PluginList from './PluginList'
66
import { FilterChips } from '../FilterChips'
7+
import PluginCardSkeletonList from './PluginCardSkeletonList'
78
import { SearchBar, useAsync } from '../../../Common'
89
import { getAvailablePluginTags, getPluginStoreData } from './service'
910
import {
@@ -16,7 +17,7 @@ import {
1617
import { DEFAULT_PLUGIN_LIST_FILTERS } from './constants'
1718
import { ReactComponent as ICCross } from '../../../Assets/Icon/ic-cross.svg'
1819
import { ReactComponent as ICVisibility } from '../../../Assets/Icon/ic-visibility-on.svg'
19-
import PluginCardSkeletonList from './PluginCardSkeletonList'
20+
import './pluginListContainer.scss'
2021

2122
const PluginListContainer = ({
2223
availableTags,
@@ -35,8 +36,8 @@ const PluginListContainer = ({
3536
handleParentTotalCount,
3637
parentFilters,
3738
handleUpdateParentFilters,
38-
rootClassName,
39-
showCardBorder,
39+
rootClassName = '',
40+
showCardBorder = false,
4041
}: Readonly<PluginListContainerProps>) => {
4142
const { appId } = useParams<PluginListParamsType>()
4243

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.pre-build-plugin-list-container {
2+
.plugin-card {
3+
&:hover {
4+
box-shadow: 0 0 4px 1px var(--N200);
5+
6+
.plugin-card__title {
7+
color: var(--B500);
8+
}
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)