From e6c36a57a63881e6671244f11a4f173bb1c463cf Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 9 Sep 2024 12:11:07 -0400 Subject: [PATCH 01/17] reorder css declarations per sass rules --- components/Block/Table.vue | 3 +-- components/Tv/TVReactions.vue | 4 +++- pages/agency-directory/[slug].vue | 5 +++-- pages/built-with-directus/[slug].vue | 5 ++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/components/Block/Table.vue b/components/Block/Table.vue index a03ec6a2..c545cf85 100644 --- a/components/Block/Table.vue +++ b/components/Block/Table.vue @@ -78,13 +78,12 @@ tr { align-items: baseline; font-size: 0.6rem; line-height: 0.6rem; + padding-block: var(--space-2); @container (width > 20rem) { font-size: var(--font-size-sm); line-height: var(--line-height-sm); } - - padding-block: var(--space-2); } td, diff --git a/components/Tv/TVReactions.vue b/components/Tv/TVReactions.vue index e09b8ada..eb86b957 100644 --- a/components/Tv/TVReactions.vue +++ b/components/Tv/TVReactions.vue @@ -162,10 +162,12 @@ onKeyStroke('Escape', () => { border: none; cursor: pointer; padding: var(--space-2); + border-radius: var(--rounded-full); + &:hover { background: var(--gray-200); } - border-radius: var(--rounded-full); + &[aria-pressed='true'] { background: var(--primary-500); color: var(--white); diff --git a/pages/agency-directory/[slug].vue b/pages/agency-directory/[slug].vue index b2d14c77..b805d4d3 100644 --- a/pages/agency-directory/[slug].vue +++ b/pages/agency-directory/[slug].vue @@ -448,6 +448,9 @@ useSchemaOrg([ footer { max-inline-size: 50rem; padding-block-start: var(--space-10); + display: grid; + grid-template-columns: 1fr; + @media (width > 60rem) { border: none; @@ -467,8 +470,6 @@ useSchemaOrg([ } } - display: grid; - grid-template-columns: 1fr; @media (width > 60rem) { display: grid; diff --git a/pages/built-with-directus/[slug].vue b/pages/built-with-directus/[slug].vue index dc2d0b01..20c9aa7c 100644 --- a/pages/built-with-directus/[slug].vue +++ b/pages/built-with-directus/[slug].vue @@ -500,6 +500,8 @@ useSchemaOrg([ footer { max-inline-size: 50rem; padding-block-start: var(--space-10); + display: grid; + grid-template-columns: 1fr; @media (width > 60rem) { border: none; @@ -519,9 +521,6 @@ useSchemaOrg([ } } - display: grid; - grid-template-columns: 1fr; - @media (width > 60rem) { display: grid; grid-template-columns: 1fr var(--space-64); From 65181e53b65ba753e8c28637104730c7c3c976bd Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 9 Sep 2024 13:22:48 -0400 Subject: [PATCH 02/17] fix operator --- server/routes/rss.xml.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/rss.xml.ts b/server/routes/rss.xml.ts index b6e6297a..3dfb06a1 100644 --- a/server/routes/rss.xml.ts +++ b/server/routes/rss.xml.ts @@ -96,7 +96,7 @@ export default defineEventHandler(async (event) => { author: [ { name: author.name ?? 'Directus Team', - link: `https://directus.io/team/${author.slug}` ?? 'https://directus.io/', + link: author.slug ? `https://directus.io/team/${author.slug}` : 'https://directus.io/', }, ], content: `

${post.summary}

-------

Read the full post on the Directus website ->

`, From bd87d94b8ab464de49300896750805b90fd4f7f2 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 9 Sep 2024 13:23:04 -0400 Subject: [PATCH 03/17] move to nuxt-icon with v1 release --- components/Base/Icon.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/Base/Icon.vue b/components/Base/Icon.vue index a3baebd9..2d55ceb1 100644 --- a/components/Base/Icon.vue +++ b/components/Base/Icon.vue @@ -1,6 +1,4 @@ From 21bb36c3cd24000a924ed7bae950b7e100ed1815 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 9 Sep 2024 13:24:06 -0400 Subject: [PATCH 04/17] explictly import utils to appease TS --- components/Block/Card.vue | 15 +++++++++++---- components/Block/Metric.vue | 4 +++- components/LogoTitle.vue | 2 ++ components/Nav/Footer.vue | 1 + components/Tv/TVByline.vue | 2 ++ 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/components/Block/Card.vue b/components/Block/Card.vue index c5ddeacd..ff5af9f6 100644 --- a/components/Block/Card.vue +++ b/components/Block/Card.vue @@ -1,5 +1,7 @@