diff --git a/doc/src/components/HomepageFeatures/index.js b/doc/src/components/HomepageFeatures/index.js index 9e302f07..a222d3e1 100644 --- a/doc/src/components/HomepageFeatures/index.js +++ b/doc/src/components/HomepageFeatures/index.js @@ -1,4 +1,3 @@ -import React from "react"; import clsx from "clsx"; import styles from "./styles.module.css"; @@ -8,18 +7,18 @@ const FeatureList = [ Svg: require("@site/static/img/icon/code-slash.svg").default, description: ( <> - Watcharr is free and open source software distributed under the MIT - license. Feel free to browse, modify or contribute! + Free and open source, distributed under the GPLv3 license. Feel free to + browse, modify or contribute! ), }, { - title: "Simple", + title: "Simple & Intuitive", Svg: require("@site/static/img/icon/happy.svg").default, description: ( <> - Watcharr is incredibly easy to dive into. Install without hassle and get - started with the seamless and intuitive user experience. + Incredibly easy to dive into. Install within the minute and get started + with the seamless experience. ), }, @@ -28,8 +27,8 @@ const FeatureList = [ Svg: require("@site/static/img/icon/go.svg").default, description: ( <> - Don't know what else to add here, so now you know Watcharr is built with - Go and Svelte. + Don't know what else to add here, so now you know I'm built with Go and + Svelte. ), }, diff --git a/server/util/age.go b/server/util/age.go index 90022bea..c79c3f6f 100644 --- a/server/util/age.go +++ b/server/util/age.go @@ -4,6 +4,12 @@ import "time" // Returns age in years. func GetAge(birthDate time.Time, deathDate time.Time) int { + if birthDate.IsZero() { + // If we don't have a birthday, skip processing. + return 0 + } + + // Calculate an endDate, which is either `deathDate` or `now`. var endDate time.Time if !deathDate.IsZero() { endDate = deathDate diff --git a/src/lib/Activity.svelte b/src/lib/Activity.svelte index 0c8c3f3e..090dc305 100644 --- a/src/lib/Activity.svelte +++ b/src/lib/Activity.svelte @@ -307,8 +307,10 @@ display: flex; flex-flow: row; align-items: center; + flex-shrink: 1; gap: 8px; width: max-content; + min-width: 0; max-width: 100%; cursor: pointer; } diff --git a/src/lib/Icon.svelte b/src/lib/Icon.svelte index e16ad070..8e8887d4 100644 --- a/src/lib/Icon.svelte +++ b/src/lib/Icon.svelte @@ -608,6 +608,7 @@ viewBox="0 0 512 512" >