Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 6bb1db4

Browse files
authored
Minor fixes (#494)
Fixed scrolling on connection profile page fixed code text alignment
1 parent 683df6d commit 6bb1db4

File tree

4 files changed

+29
-31
lines changed

4 files changed

+29
-31
lines changed

packages/composer-playground/src/app/add-file/add-file.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export class AddFileComponent implements OnInit {
114114
if (this.fileType === 'js') {
115115
let code =
116116
`/**
117-
* New script file
118-
*/`;
117+
* New script file
118+
*/`;
119119
let scriptManager = this.businessNetwork.getScriptManager();
120120
let existingScripts = scriptManager.getScripts();
121121
let filteredScripts = existingScripts.filter((script) => {
@@ -141,10 +141,10 @@ export class AddFileComponent implements OnInit {
141141

142142
let code =
143143
`/**
144-
* New model file
145-
*/
144+
* New model file
145+
*/
146146
147-
namespace ${this.addModelNamespace + numModels}`;
147+
namespace ${this.addModelNamespace + numModels}`;
148148

149149
this.currentFile = new ModelFile(modelManager, code, this.addModelFileName + numModels + this.addModelFileExtension);
150150
this.currentFileName = this.currentFile.getFileName();

packages/composer-playground/src/app/connectionprofile/connectionprofile.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ <h2>Contact Us</h2>
3737
</section>
3838
<section class="main-view">
3939
<div class="playground-profile-warning" *ngIf="warningVisible">
40-
<div style="display:flex;">
41-
<div style="margin-right:8px;">
40+
<div class="profile-warning-content">
41+
<div>
4242
<svg class="ibm-icon blue-icon" aria-hidden="true">
4343
<use xlink:href="#icon-world_24"></use>
4444
</svg>
4545
</div>
46-
<div>
46+
<div class="profile-warning-text">
4747
<h3>Connection Profiles are not available in Web Playground</h3>
4848
<p>
4949
It is not possible to add Connection Profiles in the Web Playground version of Fabric Composer.
@@ -53,7 +53,7 @@ <h3>Connection Profiles are not available in Web Playground</h3>
5353
<p>And of course it's still 100% open source</p>
5454
<p><a href="http://fabric-composer.org/">Learn more in the docs</a></p>
5555
</div>
56-
<div style="flex:1;text-align:right;">
56+
<div>
5757
<button type="button" class="button secondary" (click)="hideWarning()">Hide</button>
5858
</div>
5959
</div>

packages/composer-playground/src/app/connectionprofile/connectionprofile.component.scss

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
connection-profile {
55
display: flex;
66
width: 100%;
7-
height: 100vh;
87

98
.side-bar {
10-
width: 25%;
119
display: flex;
1210
flex-direction: column;
1311

14-
box-shadow: 5px 0 5px -5px #333;
15-
1612
.profiles {
1713
& > * {
1814
padding: $space-medium $space-large;
@@ -30,17 +26,32 @@ connection-profile {
3026
}
3127

3228
.about {
33-
flex:1;
29+
flex: 1;
3430
justify-content: flex-end;
3531
padding: $space-medium $space-large;
3632
}
3733
}
3834

3935
.main-view {
4036
background-color: $fourth-highlight;
41-
width: 75%;
4237
padding: $space-large $space-large $space-medium $space-large;
4338

39+
.playground-profile-warning {
40+
background-color: $white;
41+
border: 1px solid $fourth-highlight;
42+
border-radius: 0.25em;
43+
padding: $space-medium;
44+
margin-bottom: $space-large;
45+
46+
.profile-warning-content {
47+
display: flex;
48+
49+
.profile-warning-text {
50+
margin: 0 $space-smedium;
51+
}
52+
}
53+
}
54+
4455
.business-network-details {
4556
display: flex;
4657

@@ -56,18 +67,4 @@ connection-profile {
5667
}
5768
}
5869
}
59-
60-
.playground-profile-warning{
61-
background-color:$white;
62-
border: 1px solid $fourth-highlight;
63-
border-radius: 0.25em;
64-
padding: $space-medium;
65-
margin-bottom: $space-large;
66-
67-
}
68-
69-
.current-profile{
70-
71-
}
72-
7370
}

packages/composer-playground/src/app/resource/resource.component.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ resource-modal {
1919

2020
.resource-bound {
2121
max-height: 40px;
22-
min-width: 410px;
23-
max-width: 410px;
22+
min-width: 100%;
23+
// min-width: 410px;
24+
// max-width: 410px;
2425
margin-top: $space-medium;
2526
}
2627

0 commit comments

Comments
 (0)