react-s-alert icon indicating copy to clipboard operation
react-s-alert copied to clipboard

message can be displayed on center?

Open tonyzheng121 opened this issue 9 years ago • 6 comments

message can be displayed on center?

tonyzheng121 avatar Jan 16 '16 06:01 tonyzheng121

Unfortunately not yet, I plan to implement it. For now you can manipulate css to achieve it.

juliancwirko avatar Jan 16 '16 12:01 juliancwirko

bottom-center is popular and needed

zhaoyao91 avatar Jun 17 '17 10:06 zhaoyao91

The issue has created a long time, but the present is not yet 😢

nghiepdev avatar Nov 21 '17 03:11 nghiepdev

+1

fweffort avatar Dec 08 '17 14:12 fweffort

just do

.s-alert-box-inner {
	text-align: center;
}

kaspertiel avatar Apr 26 '18 08:04 kaspertiel

I used center align only warning messages, and added this css

.s-alert-warning {
     right: 50vw;
     left: 50vw;
     transform: translateX(-50%);         
 }

Apply:

Alert.warning(    <div>          text     </div>,
   {  position: 'bottom-right' ,  offset: 30 }
 );

AndreyPatseiko avatar Jul 23 '19 13:07 AndreyPatseiko