Skip to content

Commit

Permalink
Update CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlttiRi committed Sep 9, 2024
1 parent 062fa68 commit 179fb37
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 30 deletions.
38 changes: 23 additions & 15 deletions dist/href-taker.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name HrefTaker
// @version 0.16.1-2024.9.8-f505
// @version 0.16.2-2024.9.9-5ba2
// @namespace gh.alttiri
// @description URL grabber popup
// @license GPL-3.0
Expand Down Expand Up @@ -1580,18 +1580,23 @@ function getPopup(settings) {
name="list_button"
class="short btn-left"
>List links</button>
<label title="Include URLs parsed from text" id="include_text_url-label">
<input type="checkbox" name="include_text_url" ${checked(include_text_url)}>
Text
</label>
<label title="Only URLs parsed from text">
<input type="checkbox" name="only_text_url" ${checked(only_text_url)}>
Only text
</label>
<label title="Include media (img, video) tags">
<div class="quick-option">
<label title="Include URLs parsed from text" id="include_text_url-label">
<input type="checkbox" name="include_text_url" ${checked(include_text_url)}>
Text
</label>
</div>
<div class="quick-option">
<label title="Only URLs parsed from text">
<input type="checkbox" name="only_text_url" ${checked(only_text_url)}>
Only text
</label>
</div>
<div class="quick-option"><label title="Include media (img, video) tags">
<input type="checkbox" name="include_media" ${checked(include_media)}>
Media
</label>
Media
</label>
</div>
</div>
<div>
<button name="to_text_button" class="long btn-right"
Expand All @@ -1604,13 +1609,13 @@ function getPopup(settings) {
name="copy_button" class="short btn-left"
>Copy</button>
<span id="append-on-hover-wrapper">
<span class="quick-option" id="append-on-hover-wrapper">
<label title="Append URLs on the button hover">
<input type="checkbox" name="append_on_hover" ${checked(append_on_hover)}>
AoH
</label>
</span>
<span id="keep-in-storage-wrapper">
<span class="quick-option" id="keep-in-storage-wrapper">
<label title="Keep URLs in localStorage">
<input type="checkbox" name="keep_in_storage" ${checked(keep_in_storage)}>
KiS
Expand Down Expand Up @@ -1743,7 +1748,10 @@ this option only defines the default state.">
}
#extra_settings label {
min-width: 120px;
min-width: 125px;
}
.quick-option {
min-width: 55px;
}
.btn-left {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "href-taker",
"private": true,
"version": "0.16.1-2024.9.8-f505",
"version": "0.16.2-2024.9.9-5ba2",
"type": "module",
"scripts": {
"dev": "vite --open demo.html --host",
Expand Down
36 changes: 22 additions & 14 deletions src/components/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,23 @@ export function getPopup(settings) {
name="list_button"
class="short btn-left"
>List links</button>
<label title="Include URLs parsed from text" id="include_text_url-label">
<input type="checkbox" name="include_text_url" ${checked(include_text_url)}>
Text
</label>
<label title="Only URLs parsed from text">
<input type="checkbox" name="only_text_url" ${checked(only_text_url)}>
Only text
</label>
<label title="Include media (img, video) tags">
<div class="quick-option">
<label title="Include URLs parsed from text" id="include_text_url-label">
<input type="checkbox" name="include_text_url" ${checked(include_text_url)}>
Text
</label>
</div>
<div class="quick-option">
<label title="Only URLs parsed from text">
<input type="checkbox" name="only_text_url" ${checked(only_text_url)}>
Only text
</label>
</div>
<div class="quick-option"><label title="Include media (img, video) tags">
<input type="checkbox" name="include_media" ${checked(include_media)}>
Media
</label>
Media
</label>
</div>
</div>
<div>
<button name="to_text_button" class="long btn-right"
Expand All @@ -126,13 +131,13 @@ export function getPopup(settings) {
name="copy_button" class="short btn-left"
>Copy</button>
<span id="append-on-hover-wrapper">
<span class="quick-option" id="append-on-hover-wrapper">
<label title="Append URLs on the button hover">
<input type="checkbox" name="append_on_hover" ${checked(append_on_hover)}>
AoH
</label>
</span>
<span id="keep-in-storage-wrapper">
<span class="quick-option" id="keep-in-storage-wrapper">
<label title="Keep URLs in localStorage">
<input type="checkbox" name="keep_in_storage" ${checked(keep_in_storage)}>
KiS
Expand Down Expand Up @@ -265,7 +270,10 @@ this option only defines the default state.">
}
#extra_settings label {
min-width: 120px;
min-width: 125px;
}
.quick-option {
min-width: 55px;
}
.btn-left {
Expand Down

0 comments on commit 179fb37

Please sign in to comment.