File tree Expand file tree Collapse file tree 4 files changed +60
-4
lines changed
frontend/src/angular/src/app Expand file tree Collapse file tree 4 files changed +60
-4
lines changed Original file line number Diff line number Diff line change 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 }}
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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change @@ -14,14 +14,19 @@ import { CommonModule } from '@angular/common';
1414import { Component } from '@angular/core' ;
1515import { MatButtonModule } from '@angular/material/button' ;
1616import { MatToolbarModule } from '@angular/material/toolbar' ;
17+ import { MatInputModule } from '@angular/material/input' ;
18+ import { MatFormFieldModule } from '@angular/material/form-field' ;
1719import { 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} )
You can’t perform that action at this time.
0 commit comments