File tree Expand file tree Collapse file tree 7 files changed +11
-7
lines changed Expand file tree Collapse file tree 7 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- < h2 > Ollama Tool Calling</ h2 >
1+ < app-header > < h2 > Ollama Tool Calling</ h2 > </ app-header >
22
33< dynamic-rows >
44 < div data-height ="1fr ">
Original file line number Diff line number Diff line change 11h2 {
22 color : darkslateblue;
33}
4+
5+ app-header {
6+ flex : 1 ;
7+ }
Original file line number Diff line number Diff line change 1- < app-header > < h2 > Tab Sheet</ h2 > </ app-header >
2-
31< tab-sheet >
2+ < app-header slot ="prefix "> < h2 > Tab Sheet</ h2 > </ app-header >
43 < div slot ="tab " for ="tab1 "> Tab 1</ div >
54 < div slot ="tab " for ="tab2 "> Tab 2</ div >
65 < div slot ="tab " for ="tab3 "> Tab 3</ div >
Original file line number Diff line number Diff line change 66 align- items: center;
77
88 padding: var(--padding );
9- bor der- botto m: var(- - bor der);
109}
1110
1211butto n {
Original file line number Diff line number Diff line change 11: host {
22 - - cl- suppressed: gray;
3+ - - tabs- padding: 0 0.5rem;
34 dis play: flex;
45}
56
1516 align-items : center;
1617 justify-content : start;
1718 border-bottom : 1px solid var (--cl-border );
19+ padding : var (--tabs-padding );
1820}
1921
2022.content {
Original file line number Diff line number Diff line change 11export const HTML = `
22<link rel="stylesheet" href="${ new URL ( "./tab-sheet.css" , import . meta. url ) . href } " />
3- <slot name="prefix"></slot>
43<div class="tab-sheet">
54 <div class="header">
5+ <slot name="prefix"></slot>
66 <slot name="tab"></slot>
7+ <slot name="suffix"></slot>
78 </div>
89 <div class="content">
910 <slot></slot>
1011 </div>
1112</div>
12- <slot name="suffix"></slot>
1313`
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class TabSheet extends HTMLElement {
4242 }
4343
4444 #selectFirstTab( ) {
45- const slot = this . shadowRoot . querySelector ( ".header slot" ) ;
45+ const slot = this . shadowRoot . querySelector ( ".header slot[name='tab'] " ) ;
4646 const elements = slot . assignedElements ( ) ;
4747 if ( elements . length === 0 ) return ;
4848
You can’t perform that action at this time.
0 commit comments