Skip to content

Commit 9ffe117

Browse files
authored
fix: Return only 5 results instead of 10, clamLines in search-actor (#500)
fix: Return only 5 results instead of 10 to make the widget smaller. 10 is probably too large even for text. In the search-actor clamp lines to a single line
1 parent 9791792 commit 9ffe117

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/tools/search-actors-internal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const searchActorsInternalArgsSchema = z.object({
1212
.int()
1313
.min(1)
1414
.max(100)
15-
.default(10)
16-
.describe('The maximum number of Actors to return (default = 10)'),
15+
.default(5)
16+
.describe('The maximum number of Actors to return (default = 5)'),
1717
offset: z.number()
1818
.int()
1919
.min(0)

src/tools/store_collection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const searchActorsArgsSchema = z.object({
1515
.int()
1616
.min(1)
1717
.max(100)
18-
.default(10)
19-
.describe('The maximum number of Actors to return (default = 10)'),
18+
.default(5)
19+
.describe('The maximum number of Actors to return (default = 5)'),
2020
offset: z.number()
2121
.int()
2222
.min(0)

src/web/src/components/actor/ActorCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const StyledSeparator = styled(Box)`
5858

5959
const DescriptionText = styled(Text)<{ isDetail: boolean }>`
6060
white-space: pre-wrap;
61-
${({ isDetail }) => !isDetail && clampLines(2)};
61+
${({ isDetail }) => !isDetail && clampLines(1)};
6262
`;
6363

6464
const ActorHeader = styled.div`

0 commit comments

Comments
 (0)