Skip to content

Commit

Permalink
Destructure lineClamp too
Browse files Browse the repository at this point in the history
  • Loading branch information
minkimcello committed Nov 29, 2024
1 parent c1c2cf8 commit 3368042
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"dependencies": {
"@app/plugin-expandable-toc": "0.0.0",
"@app/plugin-toc-fix2": "0.0.0",
"@backstage-community/plugin-github-actions": "^0.6.16",
"@backstage-community/plugin-stack-overflow": "^0.1.30",
"@backstage-community/plugin-tech-radar": "^0.7.4",
"@backstage/app-defaults": "^1.5.12",
"@backstage/catalog-model": "^1.7.0",
"@backstage/cli": "^0.28.2",
Expand All @@ -34,6 +37,7 @@
"@backstage/plugin-permission-react": "^0.4.27",
"@backstage/plugin-scaffolder": "^1.26.2",
"@backstage/plugin-search": "^1.4.18",
"@backstage/plugin-search-common": "^1.2.15",
"@backstage/plugin-search-react": "^1.8.1",
"@backstage/plugin-techdocs": "^1.11.0",
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.16",
Expand All @@ -58,10 +62,7 @@
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-use": "^17.2.4",
"styled-components": "^6.0.0-rc.3",
"@backstage-community/plugin-github-actions": "^0.6.16",
"@backstage-community/plugin-stack-overflow": "^0.1.30",
"@backstage-community/plugin-tech-radar": "^0.7.4"
"styled-components": "^6.0.0-rc.3"
},
"devDependencies": {
"@backstage/test-utils": "^1.7.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface GithubDiscussionsSearchResultListItemProps {
export function GithubDiscussionsSearchResultListItem(
props: GithubDiscussionsSearchResultListItemProps,
) {
const { result, highlight, icon } = props;
const { result, highlight, icon, lineClamp } = props;
const classes = useStyles();
if (!result) return null;

Expand Down Expand Up @@ -92,7 +92,7 @@ export function GithubDiscussionsSearchResultListItem(
style={{
display: '-webkit-box',
WebkitBoxOrient: 'vertical',
WebkitLineClamp: props.lineClamp,
WebkitLineClamp: lineClamp,
overflow: 'hidden',
}}
color="textSecondary"
Expand Down

0 comments on commit 3368042

Please sign in to comment.