Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn committed Dec 14, 2023
1 parent fe2c3dc commit 5f9b274
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/topBar/DropDownCheckBox.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { createEventDispatcher, type ComponentType } from "svelte";
import { createEventDispatcher } from "svelte";
import Button from "$lib/components/overlayMenu/elements/Button.svelte";
import {
Check_box,
Expand Down Expand Up @@ -36,7 +36,7 @@
dispatch("unchecked");
}
function toggle(c: boolean) {
function toggle() {
if (checked) {
onUnCheck();
} else {
Expand Down
8 changes: 0 additions & 8 deletions src/lib/components/topBar/TopBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,3 @@
<!-- Add modal component here -->
<SettingsView />
<AboutUi />

<style>
.container {
height: 100%;
display: block;
float: left;
}
</style>
16 changes: 0 additions & 16 deletions src/lib/components/topBar/TopBarButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
$: dropdownId = `topbar-dropdown-menu-${name}`;
let button: HTMLButtonElement;
//Set visibility of dropdown to no visible
let visible: boolean = false;
</script>

<!--Show dropdown menu of given topbar item on hover-->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<button bind:this={button} popovertarget={dropdownId}>
{name}
</button>
Expand All @@ -32,16 +28,4 @@
button:hover {
background-color: var(--navigationbar-button-hover-color);
}
.unselectable {
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.container {
position: absolute;
height: 0px;
z-index: 100;
}
</style>
2 changes: 1 addition & 1 deletion src/lib/components/topBar/aboutUI/AboutUI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</p>
</div>
<button
id="close-aboout-ui"
id="close-about-ui"
on:click={() => {
$showAboutUI = false;
}}>Close</button
Expand Down

0 comments on commit 5f9b274

Please sign in to comment.