File tree Expand file tree Collapse file tree 7 files changed +29
-33
lines changed
routes/(console)/project-[region]-[project]
messaging/create-[type]/(type) Expand file tree Collapse file tree 7 files changed +29
-33
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { onMount } from ' svelte' ;
3
2
import { InputTextarea } from ' $lib/elements/forms' ;
4
3
import { feedbackData } from ' $lib/stores/feedback' ;
5
-
6
- onMount (() => {
7
- setTimeout (() => {
8
- const textarea = document .getElementById (' feedback' ) as HTMLTextAreaElement ;
9
- if (textarea ) {
10
- textarea .focus ();
11
- }
12
- }, 150 );
13
- });
14
4
</script >
15
5
16
6
<InputTextarea
17
7
required
18
8
id =" feedback"
19
- autofocus ={ true }
9
+ autofocus
20
10
bind:value ={$feedbackData .message }
21
11
label =" Tell us more about your experience"
22
12
placeholder =" Share your suggestions and feature requests..." />
Original file line number Diff line number Diff line change 51
51
import { base } from ' $app/paths' ;
52
52
import { logout } from ' $lib/helpers/logout' ;
53
53
import { app } from ' $lib/stores/app' ;
54
- import { isTabletViewport } from ' $lib/stores/viewport' ;
54
+ import { isTabletViewport , isSmallViewport } from ' $lib/stores/viewport' ;
55
55
import { isCloud } from ' $lib/system.js' ;
56
56
import { user } from ' $lib/stores/user' ;
57
57
import { Click , trackEvent } from ' $lib/actions/analytics' ;
166
166
>Upgrade</Button .Anchor >
167
167
{/if }
168
168
169
- <DropList show ={$feedback .show } class =" extended-width" >
170
- <Button .Button
171
- type =" button"
172
- variant =" compact"
173
- on:click ={() => {
174
- toggleFeedback ();
175
- trackEvent (Click .FeedbackSubmitClick , { source: ' top_nav' });
176
- }}
177
- >Feedback
178
- </Button .Button >
179
- <svelte:fragment slot =" other" >
180
- <Feedback />
181
- </svelte:fragment >
182
- </DropList >
169
+ {#if ! $isSmallViewport }
170
+ <DropList show ={$feedback .show } class =" extended-width" >
171
+ <Button .Button
172
+ type =" button"
173
+ variant =" compact"
174
+ on:click ={() => {
175
+ toggleFeedback ();
176
+ trackEvent (Click .FeedbackSubmitClick , { source: ' top_nav' });
177
+ }}
178
+ >Feedback
179
+ </Button .Button >
180
+ <svelte:fragment slot =" other" >
181
+ <Feedback />
182
+ </svelte:fragment >
183
+ </DropList >
184
+ {/if }
183
185
<DropList
184
186
noArrow
185
187
scrollable
Original file line number Diff line number Diff line change 35
35
import MobileSupportModal from ' $routes/(console)/wizard/support/mobileSupportModal.svelte' ;
36
36
import MobileFeedbackModal from ' $routes/(console)/wizard/feedback/mobileFeedbackModal.svelte' ;
37
37
import { getSidebarState , updateSidebarState } from ' $lib/helpers/sidebar' ;
38
- import { isTabletViewport } from ' $lib/stores/viewport' ;
38
+ import { isTabletViewport , isSmallViewport } from ' $lib/stores/viewport' ;
39
39
import { Click , trackEvent } from ' $lib/actions/analytics' ;
40
40
41
41
import type { HTMLAttributes } from ' svelte/elements' ;
269
269
>Feedback
270
270
</Button .Button >
271
271
<svelte:fragment slot =" other" >
272
- <MobileFeedbackModal />
272
+ {#if $isSmallViewport }
273
+ <MobileFeedbackModal />
274
+ {/if }
273
275
</svelte:fragment >
274
276
</DropList >
275
277
329
331
><span >Feedback</span >
330
332
</Button .Button >
331
333
<svelte:fragment slot =" other" >
332
- <MobileFeedbackModal />
334
+ {#if $isSmallViewport }
335
+ <MobileFeedbackModal />
336
+ {/if }
333
337
</svelte:fragment >
334
338
</DropList >
335
339
Original file line number Diff line number Diff line change 56
56
</script >
57
57
58
58
<Modal title ="Create user" {error } bind:show ={showCreate } onSubmit ={create }>
59
- <InputText autofocus ={ true } id ="name" label ="Name" placeholder ="Enter name" bind:value ={name } />
59
+ <InputText autofocus id ="name" label ="Name" placeholder ="Enter name" bind:value ={name } />
60
60
<InputEmail id ="email" label ="Email" placeholder ="Enter email" bind:value ={mail } />
61
61
<InputPhone id ="phone" label ="Phone" placeholder ="Enter phone" bind:value ={phone } />
62
62
<InputPassword id ="password" label ="Password" placeholder ="Enter password" bind:value ={pass } />
Original file line number Diff line number Diff line change 116
116
id =" title"
117
117
label =" Title"
118
118
required
119
- autofocus ={ true }
119
+ autofocus
120
120
placeholder =" Enter title"
121
121
bind:value ={title }>
122
122
</InputText >
Original file line number Diff line number Diff line change 96
96
id =" message"
97
97
label =" Message"
98
98
required
99
- autofocus ={ true }
99
+ autofocus
100
100
maxlength ={900 }
101
101
placeholder =" Type here..."
102
102
bind:value ={content }>
Original file line number Diff line number Diff line change 55
55
label =" Name"
56
56
placeholder =" New bucket"
57
57
bind:value ={name }
58
- autofocus ={ true }
58
+ autofocus
59
59
required />
60
60
61
61
{#if ! showCustomId }
You can’t perform that action at this time.
0 commit comments