From cd748e2752cca1f0d27fd863b456a8da7f63e86c Mon Sep 17 00:00:00 2001 From: NovemLinguae <79697282+NovemLinguae@users.noreply.github.com> Date: Tue, 23 Apr 2024 01:07:51 -0700 Subject: [PATCH] make warning links prettier (#326) - add parentheses around them - scoot the link a bit farther away from the warning message --- src/less/submissions.less | 2 +- src/modules/submissions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/less/submissions.less b/src/less/submissions.less index f64bb74d..726f84da 100644 --- a/src/less/submissions.less +++ b/src/less/submissions.less @@ -131,7 +131,7 @@ padding: 8px 0px; > a { - padding-left: 2px; + padding-left: 5px; font-size: 0.8em; color: @sexyblack; } diff --git a/src/modules/submissions.js b/src/modules/submissions.js index 6837b3b1..7d2d6a7d 100644 --- a/src/modules/submissions.js +++ b/src/modules/submissions.js @@ -962,7 +962,7 @@ if ( actionMessage !== false ) { $action = $( '' ) .addClass( 'link' ) - .text( actionMessage || 'Edit page' ) + .text( '(' + ( actionMessage || 'Edit page' ) + ')' ) .appendTo( $warning ); if ( typeof onAction === 'function' ) {