From 277a68916cc6b09fd76b1e1b7e7d89e4ee673d18 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 30 May 2024 22:06:29 -0400 Subject: [PATCH] Site Editor: Use site title as a link (#61258) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Try using site title as a link * Proper ellipsis * ensure ↗ renders on long site titles * focus tweaks * use unicode Unlinked contributors: jarekmorawski. Co-authored-by: richtabor Co-authored-by: t-hamano Co-authored-by: jasmussen Co-authored-by: bgardner --- .../src/components/site-hub/index.js | 23 ++++---- .../src/components/site-hub/style.scss | 55 ++++++++++++++++--- 2 files changed, 57 insertions(+), 21 deletions(-) diff --git a/packages/edit-site/src/components/site-hub/index.js b/packages/edit-site/src/components/site-hub/index.js index 190fc228ce56c..160015a4bf3b1 100644 --- a/packages/edit-site/src/components/site-hub/index.js +++ b/packages/edit-site/src/components/site-hub/index.js @@ -20,7 +20,7 @@ import { store as coreStore } from '@wordpress/core-data'; import { store as editorStore } from '@wordpress/editor'; import { decodeEntities } from '@wordpress/html-entities'; import { memo } from '@wordpress/element'; -import { search, external } from '@wordpress/icons'; +import { search } from '@wordpress/icons'; import { store as commandsStore } from '@wordpress/commands'; import { displayShortcut } from '@wordpress/keycodes'; import { filterURLForDisplay } from '@wordpress/url'; @@ -158,14 +158,8 @@ const SiteHub = memo( ( { isTransparent, className } ) => { } } >
- { decodeEntities( siteTitle ) } -
- + +