File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010<p >View and manage your past commissions.</p >
1111<div class =" buttons" >
1212 <a class =" button" href =" <%= tenant.domain %><%= tenant.path %>/create" >New Commission</a >
13+ <div id =" sync" class =" button" ><svg xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 23 23" fill =" none" >
14+ <path d =" M18.5949 5.16663C16.8618 3.32009 14.3989 2.16663 11.6666 2.16663C6.41992 2.16663 2.16663 6.41992 2.16663 11.6666C2.16663 16.9133 6.41992 21.1666 11.6666 21.1666C14.3989 21.1666 16.8618 20.0132 18.5949 18.1666M17.3236 7.98035L20.9804 7.98035L20.9804 4.3235" stroke-width =" 3" stroke-linecap =" round" stroke-linejoin =" round" />
15+ </svg > Sync Existing</div >
1316</div >
1417<div class =" commissions" >
15- <div id =" sync" ><svg xmlns =" http://www.w3.org/2000/svg" width =" 23" height =" 23" viewBox =" 0 0 23 23" fill =" none" >
16- <path d =" M18.5949 5.16663C16.8618 3.32009 14.3989 2.16663 11.6666 2.16663C6.41992 2.16663 2.16663 6.41992 2.16663 11.6666C2.16663 16.9133 6.41992 21.1666 11.6666 21.1666C14.3989 21.1666 16.8618 20.0132 18.5949 18.1666M17.3236 7.98035L20.9804 7.98035L20.9804 4.3235" stroke-width =" 3" stroke-linecap =" round" stroke-linejoin =" round" />
17- </svg > Sync</div >
1818 <% session[vars .commissions ].forEach (commission => { % >
1919 < div class = " commission" >
2020 < h2>< %= commission .id % >< / h2>
Original file line number Diff line number Diff line change @@ -296,10 +296,10 @@ async function sync() {
296296 document . getElementById ( 'error' ) . classList . remove ( 'hidden' ) ;
297297 document . querySelector ( '.inner h1' ) . innerText = 'Error' ;
298298 document . querySelector ( '.inner p' ) . innerText = result . message || 'An unknown error occurred. Please try again later.' ;
299+ setTimeout ( ( ) => {
300+ anim_in ( ) ;
301+ } , 750 )
299302 } ;
300- setTimeout ( ( ) => {
301- anim_in ( ) ;
302- } , 750 )
303303 } ) ;
304304} ;
305305
Original file line number Diff line number Diff line change @@ -75,6 +75,15 @@ code {
7575 cursor : pointer;
7676 user-select : none;
7777 transition : 0.25s ;
78+
79+ svg {
80+ height : 12.5px ;
81+
82+ path {
83+ stroke : # ffffff ;
84+ stroke-width : 2px ;
85+ }
86+ }
7887}
7988
8089.button .hidden {
@@ -267,42 +276,19 @@ main {
267276 transition : 0.25s ;
268277 }
269278
279+ # sync .active {
280+ user-select : none;
281+ pointer-events : none;
282+ }
283+
270284 .commissions {
271285 display : flex;
272286 flex-direction : column;
273287 align-items : flex-start;
274288 gap : 5px ;
275289 width : -webkit-fill-available;
276290 max-width : 500px ;
277- margin-top : 5px ;
278-
279- # sync {
280- display : flex;
281- align-items : center;
282- justify-content : flex-start;
283- margin-bottom : 5px ;
284- cursor : pointer;
285-
286- svg {
287- height : 12.5px ;
288- transition : rotate 0.5s linear;
289-
290- path {
291- stroke : # ffffff ;
292- stroke-width : 2px ;
293- }
294- }
295- }
296-
297- # sync .active {
298- user-select : none;
299- pointer-events : none;
300-
301- svg {
302- rotate : 360deg ;
303- transition : rotate 0.5s linear;
304- }
305- }
291+ margin-top : 10px ;
306292
307293 .commission {
308294 display : flex;
You can’t perform that action at this time.
0 commit comments