From 799926bafba49d9d49eab9dea81189851315ed9a Mon Sep 17 00:00:00 2001 From: NovemLinguae Date: Wed, 10 Apr 2024 01:21:31 -0700 Subject: [PATCH] make warning links prettier - 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 c2136088..7c9e3728 100644 --- a/src/modules/submissions.js +++ b/src/modules/submissions.js @@ -942,7 +942,7 @@ if ( actionMessage !== false ) { $action = $( '' ) .addClass( 'link' ) - .text( actionMessage || 'Edit page' ) + .text( '(' + ( actionMessage || 'Edit page' ) + ')' ) .appendTo( $warning ); if ( typeof onAction === 'function' ) {