Skip to content

Commit

Permalink
Merge branch 'master' into fix-timestamp-grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jan 9, 2019
2 parents 60a849b + e1f847e commit 2e6f597
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `connectCarouselFilmStrip`: Fixed `botAvatarInitials` and `userAvatarInitials` functionality from [recent name change](https://github.com/Microsoft/BotFramework-WebChat/pull/1486),
- `BasicTranscript`: Fixed user activity should not be recreated after receive ACK from Direct Line,
- by [@corinagum](https://github.com/corinagum) in PR [#1528](https://github.com/Microsoft/BotFramework-WebChat/pull/1528)
- `component`: Fix [#1560](https://github.com/Microsoft/BotFramework-WebChat/issues/1560). Fixed carousel layout did not show date and alignment issues, by [@compulim](https://github.com/compulim) in PR [#1561](https://github.com/Microsoft/BotFramework-WebChat/pull/1561)
- `playground`: Fix [#1562](https://github.com/Microsoft/BotFramework-WebChat/issues/1562). Fixed timestamp grouping "Don't group" and added "Don't show timestamp", by [@compulim](https://github.com/compulim) in PR [#1563](https://github.com/Microsoft/BotFramework-WebChat/pull/1563)

### Removed
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion __tests__/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ test('setup', async () => {

const base64PNG = await driver.takeScreenshot();

expect(base64PNG).toMatchImageSnapshot();
expect(base64PNG).toMatchImageSnapshot({
failureThreshold: 10,
failureThresholdType: 'pixel'
});
}, 60000);
35 changes: 25 additions & 10 deletions packages/component/src/Styles/StyleSet/CarouselFilmStrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,38 @@ export default function ({
return {
// Browser quirks: Firefox has no way to hide scrollbar and while keeping it in function
// https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
marginBottom: -17,
paddingLeft: paddingRegular,
paddingRight: paddingRegular,
'@supports (-moz-appearance: none)': {
marginBottom: -17
},

'& > .avatar': {
marginRight: paddingRegular
},

'& > .content > ul': {
'&:not(:first-child)': {
marginTop: paddingRegular
'& > .content': {
'& > .message': {
marginLeft: paddingRegular
},

'& > ul': {
'&:not(:first-child)': {
marginLeft: paddingRegular,
marginRight: paddingRegular,
marginTop: paddingRegular
},

'& > li': {
maxWidth: bubbleMaxWidth,
minWidth: bubbleMinWidth,

'&:not(:last-child)': {
marginRight: paddingRegular
}
}
},

'& > li': {
marginRight: paddingRegular,
maxWidth: bubbleMaxWidth,
minWidth: bubbleMinWidth
'& > .row': {
marginLeft: paddingRegular
}
}
};
Expand Down

0 comments on commit 2e6f597

Please sign in to comment.