Skip to content

Commit 2e413c2

Browse files
committed
fixed: icon positioning
1 parent f87ac38 commit 2e413c2

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

example/src/samples/sample-data.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,4 +1662,32 @@ After that some blockquote!
16621662
and normal text again.
16631663
`,
16641664
},
1665+
1666+
{
1667+
type: ChatItemType.ANSWER,
1668+
fullWidth: true,
1669+
padding: false,
1670+
header: {
1671+
buttons: [{
1672+
icon: 'undo',
1673+
text: 'Undo',
1674+
status: 'clear',
1675+
id: 'undo-change', // Or whatever ID you have
1676+
}],
1677+
fileList: {
1678+
hideFileCount: true,
1679+
fileTreeTitle: '',
1680+
filePaths: ['maze_game.py'],
1681+
details: {
1682+
'maze_game.py': {
1683+
icon: null,
1684+
changes: {
1685+
added: 131,
1686+
deleted: 0,
1687+
},
1688+
},
1689+
},
1690+
},
1691+
},
1692+
}
16651693
];

example/src/samples/sample-diff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Refactoring process on `index.ts`
22

33
Changes will be applied _between line 42 and 70_.
4-
 
4+
55
```diff-typescript
66
const mynahUI = new MynahUI({
77
tabs: {

src/styles/components/chat/_chat-item-card.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
> .mynah-chat-item-card-icon {
210210
position: absolute;
211211
left: var(--mynah-sizing-3);
212-
top: var(--mynah-sizing-5);
212+
top: calc(var(--mynah-sizing-1) + var(--mynah-line-height));
213213

214214
&[class*='icon-status-']:not(.icon-status-none) {
215215
padding: var(--mynah-sizing-2);
@@ -394,6 +394,7 @@
394394
align-items: center;
395395
font-size: var(--mynah-font-size-large);
396396
padding-right: var(--mynah-sizing-1);
397+
min-height: var(--mynah-sizing-7);
397398
@each $status in $mynah-statuses {
398399
&.status-#{$status} {
399400
color: var(--mynah-color-status-#{$status});

0 commit comments

Comments
 (0)