Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions src/components/customResults/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import FilterTags from "../filterTag/FilterTags";
import sanitizeHtml from "sanitize-html";
import { Parser } from "html-to-react";
import { getDomainFavicon, getDomainName } from "@/config/mapping-helper";
import { TruncateLengthInChar, TruncateLinkInChar } from "@/config/config";
import { TruncateLengthInChar } from "@/config/config";
import { EsSearchResult } from "@/types";
import DateIcon from "../svgs/DateIcon";
import ResultFavicon from "./ResultFavicon";
Expand Down Expand Up @@ -65,11 +65,6 @@ const Result = ({ result }: ResultProps) => {

const sanitizedBody = sanitizeHtml(getBodyData(result)).trim();

const strippedUrl = mappedUrl.replace(/^(https?:\/\/)/i, "");
const truncatedUrl =
strippedUrl.length > TruncateLinkInChar
? strippedUrl.substring(0, TruncateLinkInChar) + "..."
: strippedUrl;
const truncatedBody =
sanitizedBody.length > TruncateLengthInChar
? sanitizedBody.substring(0, TruncateLengthInChar) + " ..."
Expand Down Expand Up @@ -122,17 +117,6 @@ const Result = ({ result }: ResultProps) => {
>
{siteName}
</a>
<div className="hidden lg:block w-[2px] h-[2px] lg:w-[6px] lg:h-[6px] rounded-full text-custom-secondary-text bg-custom-black" />
<a
target="_blank"
className="text-[12px] lg:text-base leading-none"
href={onlyDomainPath ? tldrUrl : mappedUrl}
data-umami-event="URL Clicked"
data-umami-event-src={mappedUrl}
ref={linkRef}
>
{truncatedUrl}
</a>
</div>
</div>
<div className="font-mona pointer-events-none flex flex-col gap-2 lg:gap-5 ">
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const Footer = () => {
We&apos;d love to hear your feedback on this project
</p>
<a
href="https://cryptpad.fr/form/#/2/form/view/3P2CsohsHOkcH7C+WdtX0-tvqjBHqXnAmz5D9yx0e04/"
href="https://forms.gle/aLtBMjAeLZiKCFxn8"
target="_blank"
className="font-semibold text-white focus:outline-none px-3 py-3 md:py-4 md:px-6 bg-custom-primary-text rounded-xl dark:text-black"
>
Expand Down
2 changes: 2 additions & 0 deletions src/components/navBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import useSearchQuery from "@/hooks/useSearchQuery";
import { removeMarkdownCharacters } from "@/utils/elastic-search-ui-functions";
import { useTheme } from "@/context/Theme";
import { Tooltip } from "@chakra-ui/react";
import BossBanner from "../Banner";

function ThemeSwitcher() {
const { theme, toggleTheme } = useTheme();
Expand Down Expand Up @@ -132,6 +133,7 @@ const NavBar = () => {
hiddenHomeFacet ? "bg-custom-hover-state shadow-md" : ""
}`}
>
{!hiddenHomeFacet && <BossBanner />}
<div
className={`flex items-center justify-between p-3 md:p-5 2xl:p-7 w-full max-w-[1920px] m-auto ${
!hiddenHomeFacet ? "flex-row-reverse" : ""
Expand Down