Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 8a8ac0d

Browse files
committed
wip: ui fixes
1 parent 33de43d commit 8a8ac0d

File tree

4 files changed

+23
-35
lines changed

4 files changed

+23
-35
lines changed

src/entrypoints/popup/FactCheck.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<style>
5151
.radio-indent {
52-
margin-left: 40px;
52+
margin-left: 24px;
5353
}
5454
5555
.option {
@@ -74,9 +74,9 @@
7474
.current-tab-text {
7575
/* Font size scales between 14px and 18px based on the viewport width */
7676
font-size: clamp(14px, 2vw, 18px);
77-
overflow: hidden;
77+
overflow: visible;
7878
display: -webkit-box;
79-
line-clamp: 2;
79+
line-clamp: 4;
8080
display: flex;
8181
flex-direction: column;
8282
}

src/entrypoints/popup/FactCheckLoading.svelte

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,28 @@
1313
"Flying the coop",
1414
];
1515
let currentTab = $state<chrome.tabs.Tab>();
16-
var nextPage: string;
16+
var nextPage: string = $state("fake");
1717
1818
onMount(async () => {
1919
[currentTab] = await browser.tabs.query({
2020
active: true,
2121
currentWindow: true,
2222
});
23+
24+
if (
25+
currentTab?.url ==
26+
"https://newsroom.cisco.com/c/r/newsroom/en/us/a/y2025/m02/cisco-expands-partnership-with-nvidia-to-accelerate-ai-adoption-in-the-enterprise.html"
27+
) {
28+
console.log("this should run");
29+
nextPage = "real";
30+
} else if (
31+
currentTab?.url ==
32+
"https://theonion.com/lockheed-martin-develops-giant-tactical-rubber-spider/"
33+
) {
34+
console.log("this should not run :(");
35+
nextPage = "fake";
36+
}
2337
});
24-
if (
25-
currentTab?.url ==
26-
"https://newsroom.cisco.com/c/r/newsroom/en/us/a/y2025/m02/cisco-expands-partnership-with-nvidia-to-accelerate-ai-adoption-in-the-enterprise.html"
27-
) {
28-
// Handle specific URL case
29-
nextPage = "real";
30-
} else if (
31-
currentTab?.url ==
32-
"https://theonion.com/lockheed-martin-develops-giant-tactical-rubber-spider/"
33-
) {
34-
nextPage = "fake";
35-
}
3638
</script>
3739

3840
<Wrapper pageTitle="Fact Checker">

src/entrypoints/popup/FactsChecked.svelte

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,15 @@
2121

2222
<span class="factuality">
2323
<!-- 8-ball? -->
24-
{factual ? "Likely true" : "Possibly a falsehood"}
24+
{factual ? "Likely True" : "Likely fake"}
2525
</span>
2626

2727
<details class="details">
2828
<summary>Sources</summary>
2929
<ul>
3030
<li>
3131
<BlankAnchor
32-
href="https://www.wwt.com/press-release/wwt-has-entered-into-a-definitive-agreement-to-acquire-softchoice"
33-
>
34-
Official Press Release
35-
</BlankAnchor>
36-
</li>
37-
<li>
38-
<BlankAnchor
39-
href="https://www.wwt.com/news/wwt-to-buy-softchoice-in-dollar125b-blockbuster-heres-what-to-know"
32+
href="https://www.wwt.com/news/cisco-expands-partnership-with-nvidia-to-accelerate-ai-adoption-in-the-enterprise"
4033
>
4134
Official Blogpost
4235
</BlankAnchor>

src/entrypoints/popup/FactsCheckedFake.svelte

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,17 @@
2121

2222
<span class="factuality">
2323
<!-- 8-ball? -->
24-
{factual ? "Likely true" : "Possibly a falsehood"}
24+
{factual ? "Likely True" : "Likely Fake"}
2525
</span>
2626

2727
<details class="details">
2828
<summary>Sources</summary>
2929
<ul>
3030
<li>
3131
<BlankAnchor
32-
href="https://www.wwt.com/press-release/wwt-has-entered-into-a-definitive-agreement-to-acquire-softchoice"
32+
href="https://reutersinstitute.politics.ox.ac.uk/news/onions-head-writer-takes-satire-very-seriously-our-mandate-just-be-funny "
3333
>
34-
Official Press Release
35-
</BlankAnchor>
36-
</li>
37-
<li>
38-
<BlankAnchor
39-
href="https://www.wwt.com/news/wwt-to-buy-softchoice-in-dollar125b-blockbuster-heres-what-to-know"
40-
>
41-
Official Blogpost
34+
Article on Source
4235
</BlankAnchor>
4336
</li>
4437
</ul>

0 commit comments

Comments
 (0)