Skip to content

Commit 255a440

Browse files
authored
Merge branch 'release/latest' into nmetulev/template-story-teams-messages
2 parents e98488f + fdd7810 commit 255a440

File tree

5 files changed

+36
-33
lines changed

5 files changed

+36
-33
lines changed

.storybook/addons/codeEditorAddon/codeAddon.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ export const withCodeEditor = makeDecorator({
113113
root.appendChild(editor);
114114

115115
window.addEventListener('resize', () => {
116-
storyElement.style.height = '';
117-
storyElement.style.width = '';
118-
editor.style.height = '';
119-
editor.style.width = '';
116+
storyElementWrapper.style.height = null;
117+
storyElementWrapper.style.width = null;
118+
editor.style.height = null;
119+
editor.style.width = null;
120120
});
121121

122122
return root;

.storybook/addons/codeEditorAddon/editor.js

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
33

44
let debounce = (func, wait, immediate) => {
55
var timeout;
6-
return function() {
6+
return function () {
77
var context = this,
88
args = arguments;
9-
var later = function() {
9+
var later = function () {
1010
timeout = null;
1111
if (!immediate) func.apply(context, args);
1212
};
@@ -29,30 +29,30 @@ export class EditorElement extends LitElement {
2929
height: 100%;
3030
display: flex;
3131
flex-direction: column;
32-
background-color: rgb(37, 37, 38);
32+
background-color: rgb(243, 243, 243);
3333
}
3434
35-
.tab-root {
36-
height: 38px;
37-
}
35+
3836
3937
.editor-root {
4038
flex-basis: 100%;
4139
}
4240
4341
.tab {
44-
background-color: rgb(45, 45, 45);
45-
color: rgba(255, 255, 255, 0.25);
46-
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto,
47-
'Helvetica Neue', sans-serif;
48-
font-size: 12px;
49-
padding: 14px 18px;
42+
background-color: rgb(236,236,236);
43+
color: #616161;
44+
font-family: -apple-system,BlinkMacSystemFont,sans-serif;
45+
font-size: 11px;
46+
padding: 8px 18px;
5047
display: inline-block;
48+
cursor: pointer;
49+
user-select: none;
50+
margin: 0px -2px 0px 0px;
5151
}
5252
5353
.tab.selected {
54-
background-color: rgb(30, 30, 30);
55-
color: white;
54+
background-color: white;
55+
color: rgb(51, 51, 51);
5656
font-weight: 400;
5757
}
5858
`;
@@ -94,7 +94,7 @@ export class EditorElement extends LitElement {
9494
this.files[this.currentType] = this.editor.getValue();
9595
let event = new CustomEvent('fileUpdated');
9696
this.dispatchEvent(event);
97-
}, 500);
97+
}, 1000);
9898

9999
this.setupEditor(this.editorRoot);
100100
this.appendChild(this.editorRoot);
@@ -123,7 +123,6 @@ export class EditorElement extends LitElement {
123123

124124
this.editor = monaco.editor.create(htmlElement, {
125125
model: this.currentEditorState.model,
126-
theme: 'vs-dark',
127126
scrollBeyondLastLine: false,
128127
minimap: {
129128
enabled: false
@@ -188,17 +187,11 @@ export class EditorElement extends LitElement {
188187
return html`
189188
<div class="root">
190189
<div class="tab-root">
191-
${this.fileTypes.map(
192-
type =>
193-
html`
194-
<div
195-
@click="${_ => this.showTab(type)}"
196-
class="tab ${type === this.currentType ? 'selected' : ''}"
197-
>
198-
${type}
199-
</button>
200-
`
201-
)}
190+
${this.fileTypes.map(type => html`
191+
<div @click="${_ => this.showTab(type)}"
192+
class="tab ${type === this.currentType ? 'selected' : ''}">
193+
${type}
194+
</div>`)}
202195
</div>
203196
<div class="editor-root">
204197
<slot name="editor"></slot>

.storybook/preview-body.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
height: 100%;
1515
width: 100%;
1616
position: relative;
17+
display: flex;
1718
}
1819

1920
.story-mgt-preview {
@@ -30,11 +31,12 @@
3031
}
3132

3233
.story-mgt-editor {
33-
width: 50%;
34+
width: calc(50% - 1px);
3435
height: 100%;
3536
position: relative;
3637
float: left;
3738
overflow: hidden;
39+
border-left: 1px solid #e7e7e7;
3840
}
3941

4042
.story-mgt-separator {
@@ -61,14 +63,20 @@
6163
}
6264

6365
@media (max-width: 768px) {
66+
.story-mgt-root {
67+
flex-direction: column;
68+
}
69+
6470
.story-mgt-preview-wrapper {
6571
height: 50%;
6672
width: 100%;
6773
}
6874

6975
.story-mgt-editor {
70-
height: 50%;
76+
height: calc(50% - 1px);
7177
width: 100%;
78+
border-left: none;
79+
border-top: 1px solid #e7e7e7;
7280
}
7381

7482
.story-mgt-separator {

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<mgt-login></mgt-login>
3535
<mgt-person person-query="me" show-name show-email person-card="hover"></mgt-person>
3636
<mgt-people-picker></mgt-people-picker>
37+
<mgt-teams-channel-picker></mgt-teams-channel-picker>
3738
<mgt-tasks data-source="todo"></mgt-tasks>
3839
<mgt-agenda group-by-day></mgt-agenda>
3940
<mgt-people></mgt-people>

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The toolkit currently includes the following components:
2525
* [mgt-agenda](https://docs.microsoft.com/graph/toolkit/components/agenda)
2626
* [mgt-tasks](https://docs.microsoft.com/graph/toolkit/components/tasks)
2727
* [mgt-get](https://docs.microsoft.com/graph/toolkit/components/get)
28+
* [mgt-teams-channel-picker](https://docs.microsoft.com/en-us/graph/toolkit/components/teams-channel-picker)
2829

2930
And the following providers:
3031

0 commit comments

Comments
 (0)