Skip to content

Commit

Permalink
fix: delete icons
Browse files Browse the repository at this point in the history
  • Loading branch information
7nik committed Jun 1, 2024
1 parent b5bc364 commit f3816cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/Settings.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<script lang="ts">
import { getContext } from "svelte";
import SETTINGS from "./settings";
import VkApi from "./vkApi";
import Button from "./Button.svelte";
import { getTag } from "./Utils";
import TagsField from "./TagsField.svelte";
const light = !getContext("darkTheme");
function save () {
localStorage.AP_VK_Poster_Settings = JSON.stringify(SETTINGS);
}
Expand Down Expand Up @@ -205,7 +202,7 @@
{#each SETTINGS.schedule as time, i}
<span class="time">
{timeToStr(time)}
<span class="icon_delete" class:light on:click={() => removeTime(i)}></span>
<span class="icon_delete" on:click={() => removeTime(i)}></span>
</span>
{/each}
</section>
Expand Down Expand Up @@ -260,7 +257,7 @@
{#each fTags as tag}
<span class="time">
{tag.name}
<span class="icon_delete" class:light on:click={() => removeTag(tag.id)}></span>
<span class="icon_delete" on:click={() => removeTag(tag.id)}></span>
</span>
{/each}
</section>
Expand Down Expand Up @@ -317,8 +314,11 @@
}
.icon_delete {
cursor: pointer;
}
.icon_delete.light {
filter: invert(1);
display: inline-block;
width: 18px;
height: 18px;
background-image: url(/assets/styles/icons/delete.svg);
background-size: contain;
filter: drop-shadow(0 0 1px #0004);
}
</style>
2 changes: 1 addition & 1 deletion src/meta.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name AP VK poster
// @namespace 7nik@anime-pictures.net
// @version 2.6.4
// @version 2.6.5
// @description Make a post with a picture in vk.com/mjvart
// @author 7nik, MiTereKun
// @match https://anime-pictures.net/*
Expand Down

0 comments on commit f3816cf

Please sign in to comment.