Refactor CSS and code (#3703)

- Modal trigger code refactor
- Unused CSS removed
This commit is contained in:
Pavel Laptev 2024-05-06 13:19:51 +02:00 committed by GitHub
parent 83dec79ef0
commit 358292dc1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1 additions and 45 deletions

View File

@ -148,7 +148,7 @@
</div> </div>
{/if} {/if}
<style> <style lang="postcss">
.update-banner { .update-banner {
cursor: default; cursor: default;
user-select: none; user-select: none;

View File

@ -205,12 +205,6 @@
height: 100%; height: 100%;
} }
.spacer {
display: flex;
flex-direction: column;
gap: var(--size-16);
}
.branch { .branch {
height: 100%; height: 100%;
} }
@ -264,28 +258,6 @@
padding-left: var(--size-4); padding-left: var(--size-4);
} }
.branch-switcher {
margin-top: 8px;
padding: 8px;
background-color: var(--clr-bg-2);
border-width: 1px;
border-color: var(--clr-border-2);
border-radius: 4px;
}
.branch-display {
display: flex;
flex-direction: row;
align-items: center;
gap: 4px;
margin-bottom: 2px;
}
.branch-name {
font-weight: 600;
font-family: monospace;
}
.middle-message { .middle-message {
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@ -198,10 +198,6 @@
margin-bottom: var(--size-8); margin-bottom: var(--size-8);
} }
.disabled-step {
opacity: 0.4;
}
.step-section { .step-section {
display: flex; display: flex;
gap: var(--size-16); gap: var(--size-16);

View File

@ -143,24 +143,13 @@
modal.close(); modal.close();
} }
// if triggered by window menu
async function setEnabled(enabled: boolean) {
return await invoke('menu_item_set_enabled', {
menuItemId: 'project/settings',
enabled
});
}
onMount(() => { onMount(() => {
setEnabled(true);
const unsubscribe = listen<string>('menu://help/share-debug-info/clicked', () => { const unsubscribe = listen<string>('menu://help/share-debug-info/clicked', () => {
show(); show();
}); });
return () => { return () => {
unsubscribe(); unsubscribe();
setEnabled(false);
}; };
}); });
</script> </script>

View File

@ -220,7 +220,6 @@
} }
/* BANNERS */ /* BANNERS */
.social-banners { .social-banners {
display: flex; display: flex;
flex-direction: column; flex-direction: column;