From 9221a65f9f94f70140a8c62afb5c8fd365544cdf Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Sun, 22 Dec 2024 01:04:24 -0800 Subject: [PATCH] Refactor VersionCheck and VersionCheckChangelog components to update positioning of the "read more" text and adjust margins --- .../src/components/islands/sidebar/VersionCheck.astro | 1 + .../components/islands/sidebar/VersionCheckChangelog.astro | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheck.astro b/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheck.astro index 6e340e048..e20b79b40 100644 --- a/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheck.astro +++ b/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheck.astro @@ -163,6 +163,7 @@ const status = comparison === -1 ? 'outdated' : comparison === 0 ? 'latest' : 'f .read-more-text:hover { color: hsl(var(--primary-base)); + text-decoration: underline; } a { diff --git a/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheckChangelog.astro b/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheckChangelog.astro index 31ccc205b..a9e8f2ebe 100644 --- a/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheckChangelog.astro +++ b/packages/studiocms_dashboard/src/components/islands/sidebar/VersionCheckChangelog.astro @@ -36,8 +36,8 @@ const { link } = Astro.props; const frameButton = document.createElement('button'); frameButton.innerHTML = ''; frameButton.style.position = 'absolute'; - frameButton.style.top = '1rem'; - frameButton.style.right = '1rem'; + frameButton.style.top = '1.5rem'; + frameButton.style.right = '1.5rem'; frameButton.style.backgroundColor = 'transparent'; frameButton.style.border = 'none'; frameButton.style.cursor = 'pointer';