From 00aa613c4342bc0ef70114792da2bbfc068ed0fe Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 5 Dec 2008 06:16:50 +0000 Subject: [PATCH] Fix postbox title action links overlapping git-svn-id: http://svn.automattic.com/wordpress/trunk@10061 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/dashboard.css | 4 ++++ wp-admin/includes/dashboard.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css index 0471c3d813..54bc0bc575 100644 --- a/wp-admin/css/dashboard.css +++ b/wp-admin/css/dashboard.css @@ -79,8 +79,12 @@ div.postbox div.inside { #dashboard-widgets h3 a { text-decoration: underline; +} + +#dashboard-widgets h3 .postbox-title-action { position: absolute; right: 30px; + padding: 0; } #dashboard-widgets h4 { diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index e4b6113539..5dad0c9fe8 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -115,12 +115,12 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_ $wp_dashboard_control_callbacks[$widget_id] = $control_callback; if ( isset( $_GET['edit'] ) && $widget_id == $_GET['edit'] ) { list($url) = explode( '#', add_query_arg( 'edit', false ), 2 ); - $widget_name .= ' ' . __( 'Cancel' ) . ''; + $widget_name .= ' ' . __( 'Cancel' ) . ''; add_meta_box( $widget_id, $widget_name, '_wp_dashboard_control_callback', 'dashboard', 'normal', 'core' ); return; } list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 ); - $widget_name .= ' ' . __( 'Configure' ) . ''; + $widget_name .= ' ' . __( 'Configure' ) . ''; } $side_widgets = array('dashboard_quick_press', 'dashboard_recent_drafts', 'dashboard_primary', 'dashboard_secondary'); $location = 'normal';