Skip to content

Commit 414e5aa

Browse files
committed
fix: copilot variant adaptive card double padding
1 parent b758ff8 commit 414e5aa

4 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Adaptive Card Layout - Copy Button (copilot)</title>
5+
<script>
6+
location = './layout?theme=fluent&variant=copilot';
7+
</script>
8+
</head>
9+
<body></body>
10+
</html>
33.4 KB
Loading

__tests__/html2/markdown/codeBlockCopyButton/adaptiveCards/layout.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<!doctype html>
22
<html lang="en-US">
33
<head>
4+
<title>Adaptive Card Layout - Copy Button</title>
45
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
6+
<script crossorigin="anonymous" src="https://unpkg.com/react@16.8.6/umd/react.production.min.js"></script>
7+
<script crossorigin="anonymous" src="https://unpkg.com/react-dom@16.8.6/umd/react-dom.production.min.js"></script>
58
<script crossorigin="anonymous" src="/test-harness.js"></script>
69
<script crossorigin="anonymous" src="/test-page-object.js"></script>
710
<script crossorigin="anonymous" src="/__dist__/webchat-es5.js"></script>
11+
<script crossorigin="anonymous" src="/__dist__/botframework-webchat-fluent-theme.production.min.js"></script>
812
</head>
913

1014
<body>
@@ -22,7 +26,7 @@
2226
);
2327

2428
const {
25-
WebChat: { renderWebChat, testIds }
29+
WebChat: { testIds }
2630
} = window; // Imports in UMD fashion.
2731

2832
const { directLine, store } = testHelpers.createDirectLineEmulator();

packages/fluent-theme/src/components/activity/PartGroupingDecorator.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,12 @@
633633
:global(.webchat__bubble) {
634634
position: static;
635635
width: var(--webchat-part-grouping__bubble--max-width);
636+
637+
:global(.webchat__bubble__content .webchat__adaptive-card-renderer > .ac-adaptiveCard) {
638+
font-family: var(--webchat-fontFamilyBase);
639+
/* Remove double padding for adaptive cards inside bubble */
640+
padding: unset !important;
641+
}
636642
}
637643

638644
&:not(.part-grouping-decorator--group) {

0 commit comments

Comments
 (0)