I'n my react app, i'm using react-alert. The problem i'm having is the width seems to be fixed thus having the text wrap. I'm trying to have the width adjust it's length based on the length of the containing alert message and not wrap the text. How do i go about doing that?
// React Alert
import { Provider as AlertProvider } from "react-alert";
import AlertTemplate from "react-alert-template-basic";
// Alerts Options
const alertOptions = {
timeout: 5000,
position: 'top center',
}
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<AlertProvider template={AlertTemplate} {...alertOptions}>
<App />
</AlertProvider>
</Provider>
</React.StrictMode>,
document.getElementById("root")
);
serviceWorker.unregister();