File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
export let detailsTitle: string ;
3
3
export let detailsLabel: string ;
4
+ export let detailsSummary: string = ' ' ;
4
5
let open: boolean = true ;
5
6
6
7
const toggle = (): void => {
@@ -35,7 +36,7 @@ const toggle = (): void => {
35
36
class:block ={! open }
36
37
class =" bg-[var(--pd-content-card-bg)] mt-5 p-4 rounded-md h-fit max-lg:hidden"
37
38
aria-label ={` toggle ${detailsLabel } ` }>
38
- <button on:click ={toggle } aria-label ={` show ${detailsLabel } ` }
39
+ <button on:click ={toggle } aria-label ={` show ${detailsLabel } ` } title ={ detailsSummary }
39
40
><i class =" fas fa-angle-left text-[var(--pd-content-card-icon)]" ></i ></button >
40
41
</div >
41
42
</div >
Original file line number Diff line number Diff line change 2
2
import ContentDetailsLayout from ' ./ContentDetailsLayout.svelte' ;
3
3
</script >
4
4
5
- <ContentDetailsLayout detailsTitle =" a title" detailsLabel =" a label" >
5
+ <ContentDetailsLayout detailsTitle =" a title" detailsLabel =" a label" detailsSummary = " a summary " >
6
6
<svelte:fragment slot =" content" >A Content</svelte:fragment >
7
7
<svelte:fragment slot =" details" >Details...</svelte:fragment >
8
8
</ContentDetailsLayout >
Original file line number Diff line number Diff line change @@ -212,7 +212,10 @@ function handleOnClick(): void {
212
212
<svelte:fragment slot =" content" >
213
213
<div class =" flex flex-col w-full h-full bg-[var(--pd-content-bg)]" >
214
214
<div class ="h-full overflow-auto" bind:this ={scrollable }>
215
- <ContentDetailsLayout detailsTitle =" Settings" detailsLabel =" settings" >
215
+ <ContentDetailsLayout
216
+ detailsTitle =" Settings"
217
+ detailsLabel =" settings"
218
+ detailsSummary =" Playground Settings: edit model parameters and view metrics" >
216
219
<svelte:fragment slot =" content" >
217
220
<div class =" flex flex-col w-full h-full grow overflow-auto" >
218
221
<div aria-label =" conversation" class =" w-full h-full" >
Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ function getFilter(items: ApplicationState[]): ApplicationState[] {
65
65
<svelte:fragment slot =" content" >
66
66
<div class =" bg-[var(--pd-content-bg)] h-full overflow-y-auto" >
67
67
<Route path =" /" >
68
- <ContentDetailsLayout detailsTitle =" AI App Details" detailsLabel =" application details" >
68
+ <ContentDetailsLayout
69
+ detailsTitle =" AI App Details"
70
+ detailsLabel =" application details"
71
+ detailsSummary =" AI App Details: view the app repository" >
69
72
<svelte:fragment slot =" content" >
70
73
<MarkdownRenderer source ={recipe ?.readme } />
71
74
</svelte:fragment >
You can’t perform that action at this time.
0 commit comments