File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 35
35
36
36
const onReset = () => {
37
37
stateReset ();
38
+ showResetDialog = false ;
38
39
};
39
40
40
41
const onToggleResetDialog = () => {
123
124
.reset h6 {
124
125
font-size : 13px ;
125
126
font-weight : 600 ;
126
- margin-bottom : 12 px ;
127
+ margin-bottom : 18 px ;
127
128
}
128
129
129
130
.reset p {
130
131
display : block ;
131
- margin-bottom : 18 px ;
132
+ margin-bottom : 24 px ;
132
133
text-align : left ;
133
134
}
134
135
141
142
142
143
.reset button :last-of-type {
143
144
margin-left : 16px ;
144
- }
145
-
146
- .reset button [type = ' submit' ] {
147
145
color : var (--color-5 );
148
146
}
149
147
</style >
179
177
</Menu >
180
178
</nav >
181
179
<div >
182
- {#if ! api }
180
+ {#if api }
183
181
<Share {api } bind:title />
184
182
{/if }
185
183
</div >
186
184
<div />
187
185
<Dialog bind:visible ={showResetDialog }>
188
- <form class =" reset" >
186
+ <div class =" reset" >
189
187
<h6 >Do you want to clear the current patch?</h6 >
190
188
<p >Your changes on current patch will be lost.</p >
191
189
<div >
192
- <button on:click ={onToggleResetDialog } type = " button " >Cancel</button >
193
- <button on:click ={onReset } type = " submit " >Clear</button >
190
+ <button type = "button" on:click ={onToggleResetDialog }>Cancel</button >
191
+ <button type = "button" on:click ={onReset }>Clear</button >
194
192
</div >
195
- </form >
193
+ </div >
196
194
</Dialog >
197
195
</header >
Original file line number Diff line number Diff line change 66
66
padding : 8px ;
67
67
}
68
68
69
- :global(ul .menu form button , .dialog form button ) {
69
+ :global(ul .menu form button , .dialog button ) {
70
70
padding : 8px 0 ;
71
71
background : var (--color-ui-hover );
72
72
justify-content : center ;
73
73
}
74
74
75
- :global(ul .menu form button :hover , .dialog form button :hover ) {
75
+ :global(ul .menu form button :hover , .dialog button :hover ) {
76
76
background : var (--color-ui-bg-secondary );
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments