Skip to content

Commit e121c43

Browse files
committed
Implement a tooltip on the instructions panel to display the full raw text upon hover
1 parent 5132425 commit e121c43

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎packages/ui/src/components/editor/panel/Changes/Changes.module.scss‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,28 @@
2020
}
2121

2222
.instructions {
23+
position: relative;
2324
padding: var(--padding-5px) var(--padding-20px) var(--padding-5px)
2425
var(--padding-7px);
2526
color: var(--vscode-descriptionForeground);
2627
border: 1px solid var(--vscode-sideBarSectionHeader-border);
2728
margin: 0 var(--padding-12px) var(--padding-8px) var(--padding-12px);
2829
border-radius: var(--border-radius-5px);
2930
word-wrap: break-word;
31+
overflow: hidden;
32+
display: -webkit-box;
33+
-webkit-line-clamp: 3;
34+
-webkit-box-orient: vertical;
35+
36+
&::after {
37+
position: absolute;
38+
content: '';
39+
width: 100%;
40+
height: 4px;
41+
bottom: 0;
42+
left: 0;
43+
background: var(--vscode-sideBar-background);
44+
}
3045
}
3146

3247
.list {

‎packages/ui/src/components/editor/panel/Changes/Changes.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export const Changes: FC<Props> = ({
7272
return (
7373
<div className={styles.container}>
7474
{raw_instructions && (
75-
<div className={styles.instructions}>{raw_instructions}</div>
75+
<div className={styles.instructions} title={raw_instructions}>
76+
{raw_instructions}
77+
</div>
7678
)}
7779
{fallback_count > 0 && (
7880
<div className={styles.info}>

0 commit comments

Comments
 (0)