Skip to content

Commit ec80b13

Browse files
committed
feat: add input
1 parent 358cc14 commit ec80b13

File tree

4 files changed

+60
-4
lines changed

4 files changed

+60
-4
lines changed

frontend/src/angular/src/app/function-search/function-search.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
[dataSource]="dataSource"
7171
class="example-tree"
7272
>
73-
<mat-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
73+
<mat-nested-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
7474
<div class="tree-node">
7575
<div>
7676
<span i18n="@@functionSearchTitle">Title</span>: {{ node.value1 }}
@@ -79,7 +79,7 @@
7979
<span i18n="@@functionSearchSummary">Summary</span>: {{ node.value2 }}
8080
</div>
8181
</div>
82-
</mat-tree-node>
82+
</mat-nested-tree-node>
8383
<mat-nested-tree-node *matTreeNodeDef="let node; when: hasChild">
8484
<div class="mat-tree-node">
8585
<button

frontend/src/angular/src/app/mcp-client/mcp-client.component.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@
2424
</div>
2525
</div>
2626
</mat-toolbar>
27+
<div class="my-input-container">
28+
<div class="my-textarea">
29+
<mat-form-field class="example-full-width">
30+
<mat-label>Query about books or movies</mat-label>
31+
<textarea matInput placeholder="Ask about books or movies."></textarea>
32+
</mat-form-field>
33+
</div>
34+
<div class="my-button">
35+
<button matButton="filled">Basic</button>
36+
</div>
37+
</div>

frontend/src/angular/src/app/mcp-client/mcp-client.component.scss

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,44 @@
1010
See the License for the specific language governing permissions and
1111
limitations under the License.
1212
*/
13-
13+
.toolbar-content {
14+
display: flex;
15+
align-items: center;
16+
justify-content: center;
17+
flex-wrap: wrap;
18+
width: 100%;
19+
}
20+
21+
.example-fill-remaining-space {
22+
// This fills the remaining space, by using flexbox.
23+
// Every toolbar row uses a flexbox row layout.
24+
flex: 1 1 auto;
25+
}
26+
27+
.example-full-width {
28+
width: 100%;
29+
}
30+
31+
.my-input-container {
32+
display: flex;
33+
flex-wrap: nowrap;
34+
width: 100%;
35+
height: 100px;
36+
padding: 5px;
37+
align-items: center;
38+
}
39+
40+
.my-textarea {
41+
flex-grow: 1;
42+
height: 100px;
43+
padding: 5px;
44+
}
45+
46+
.my-button {
47+
padding: 15px;
48+
}
49+
50+
.example-full-width {
51+
width: 100%;
52+
}
53+

frontend/src/angular/src/app/mcp-client/mcp-client.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ import { CommonModule } from '@angular/common';
1414
import { Component } from '@angular/core';
1515
import { MatButtonModule } from '@angular/material/button';
1616
import { MatToolbarModule } from '@angular/material/toolbar';
17+
import {MatInputModule} from '@angular/material/input';
18+
import {MatFormFieldModule} from '@angular/material/form-field';
1719
import { Router } from '@angular/router';
1820

1921
@Component({
2022
selector: 'app-mcp-client',
2123
imports: [
2224
CommonModule,
2325
MatToolbarModule,
24-
MatButtonModule],
26+
MatButtonModule,
27+
MatInputModule,
28+
MatFormFieldModule
29+
],
2530
templateUrl: './mcp-client.component.html',
2631
styleUrl: './mcp-client.component.scss'
2732
})

0 commit comments

Comments
 (0)