File tree Expand file tree Collapse file tree 6 files changed +47
-24
lines changed
src/routes/(console)/project-[region]-[project]
database-[database]/table-[table]/columns Expand file tree Collapse file tree 6 files changed +47
-24
lines changed Original file line number Diff line number Diff line change 7272 </Button >
7373 </div >
7474 <svelte:fragment slot =" tooltip" >
75- You have reached the maximum number of databases for your plan.
75+ <div style =" white-space: pre-line;" >
76+ You have reached the maximum number of databases for your plan.
77+ </div >
7678 </svelte:fragment >
7779 </Tooltip >
7880 {/if }
Original file line number Diff line number Diff line change 229229 </div >
230230 </Box >
231231 {#if data .relationType }
232+ {@const isManySide =
233+ data .side === ' child' && [' oneToMany' , ' manyToOne' ].includes (data .relationType )}
232234 <div >
233- <p class =" u-text-center" >
234- <b data-private >{camelize (currentTable .name )}</b > can contain {[
235- ' oneToOne' ,
236- ' manyToOne'
237- ].includes (data .relationType )
238- ? ' one'
239- : ' many' }
240- <b data-private >{camelize (data .key )}</b >
241- </p >
242- <p class =" u-text-center" >
243- <b data-private >{camelize (data .key )}</b >
244- can belong to {[' oneToOne' , ' oneToMany' ].includes (data .relationType )
245- ? ' one'
246- : ' many' }
247- <b data-private >{camelize (currentTable .name )}</b >
248- </p >
235+ {#if isManySide }
236+ <p class =" u-text-center" >
237+ <b data-private >{camelize (currentTable .name )}</b > can belong to one
238+ <b data-private >{camelize (data .key )}</b >
239+ </p >
240+ <p class =" u-text-center" >
241+ <b data-private >{camelize (data .key )}</b > can have many
242+ <b data-private >{camelize (currentTable .name )}</b >
243+ </p >
244+ {:else }
245+ <p class =" u-text-center" >
246+ <b data-private >{camelize (currentTable .name )}</b > can contain {[
247+ ' oneToOne' ,
248+ ' manyToOne'
249+ ].includes (data .relationType )
250+ ? ' one'
251+ : ' many' }
252+ <b data-private >{camelize (data .key )}</b >
253+ </p >
254+ <p class =" u-text-center" >
255+ <b data-private >{camelize (data .key )}</b >
256+ can belong to {[' oneToOne' , ' oneToMany' ].includes (data .relationType )
257+ ? ' one'
258+ : ' many' }
259+ <b data-private >{camelize (currentTable .name )}</b >
260+ </p >
261+ {/if }
249262 </div >
250263 {/if }
251264 </div >
Original file line number Diff line number Diff line change 109109 </Button >
110110 </div >
111111 <svelte:fragment slot =" tooltip" >
112- You have reached the maximum number of functions for your plan.
112+ <div style =" white-space: pre-line;" >
113+ You have reached the maximum number of functions for your plan.
114+ </div >
113115 </svelte:fragment >
114116 </Tooltip >
115117 </Layout .Stack >
Original file line number Diff line number Diff line change 2020
2121{#if $canWritePlatforms }
2222 {#if isLimited }
23- <Tooltip maxWidth = " 200px " >
23+ <Tooltip >
2424 <div >
2525 <Button disabled >
2626 <Icon icon ={IconPlus } slot =" start" />
2929 </div >
3030
3131 <svelte:fragment slot =" tooltip" >
32- You have reached the maximum number of platforms for your plan in a project.
32+ <div style =" white-space: pre-line;" >
33+ You have reached the maximum number of platforms for your plan in a project.
34+ </div >
3335 </svelte:fragment >
3436 </Tooltip >
3537 {:else }
Original file line number Diff line number Diff line change 3939 <Layout .Stack direction =" row" alignItems =" center" justifyContent =" flex-end" >
4040 <ViewSelector ui ="new" {columns } view ={View .Table } hideView />
4141 {#if $canWriteWebhooks }
42- <Tooltip disabled ={! isLimited } maxWidth = " 200px " >
42+ <Tooltip disabled ={! isLimited }>
4343 <div >
4444 <Button disabled ={isLimited } event ="create_webhook" href ={webhooksCreateUrl }>
4545 <Icon icon ={IconPlus } slot =" start" size =" s" />
4646 Create webhook
4747 </Button >
4848 </div >
4949 <svelte:fragment slot =" tooltip" >
50- You have reached the maximum number of webhooks for your plan.
50+ <div style =" white-space: pre-line;" >
51+ You have reached the maximum number of webhooks for your plan.
52+ </div >
5153 </svelte:fragment >
5254 </Tooltip >
5355 {/if }
Original file line number Diff line number Diff line change 4444 view ={data .view }
4545 searchPlaceholder =" Search by name or ID" >
4646 {#if $canWriteBuckets }
47- <Tooltip disabled ={! isLimited } maxWidth = " 200px " >
47+ <Tooltip disabled ={! isLimited }>
4848 <div >
4949 <Button
5050 size =" s"
5656 </Button >
5757 </div >
5858 <svelte:fragment slot =" tooltip" >
59- You have reached the maximum number of buckets for your plan.
59+ <div style =" white-space: pre-line;" >
60+ You have reached the maximum number of buckets for your plan.
61+ </div >
6062 </svelte:fragment >
6163 </Tooltip >
6264 {/if }
You can’t perform that action at this time.
0 commit comments