Skip to content

Commit

Permalink
Update server description input styling
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Mar 31, 2024
1 parent c14910d commit d2eb631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/(servers)/servers/[id]/manage/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function Content({ server }) {
This is the description that will be shown to everyone who visits your server on discord.place.<br/>Make sure to include important information about your server.
</p>

<span contentEditable suppressContentEditableWarning className='block w-full h-[150px] p-2 mt-4 overflow-y-auto border-2 border-transparent rounded-lg outline-none bg-secondary text-placeholder focus-visible:text-primary focus-visible:border-purple-500' onKeyUp={event => {
<span contentEditable suppressContentEditableWarning className='block w-full h-[150px] p-2 mt-4 overflow-y-auto border-2 border-transparent rounded-lg outline-none bg-secondary text-placeholder focus-visible:text-primary focus-visible:border-purple-500 whitespace-pre-wrap' onKeyUp={event => {
if (event.target.textContent.length > config.serverDescriptionMaxCharacters) return toast.error(`Description can only contain ${config.serverDescriptionMaxCharacters} characters.`);
setNewDescription(event.target.innerText);
}}>
Expand Down

0 comments on commit d2eb631

Please sign in to comment.