Increase message size and use wrapping for message dispaly

This commit is contained in:
swagg boi 2022-01-04 22:05:51 -05:00
parent fe583cc8b2
commit 2af783940a
4 changed files with 6 additions and 2 deletions

View file

@ -102,7 +102,7 @@ article {
article .message.field { article .message.field {
font-family: cursive; font-family: cursive;
margin-bottom: 0em; margin-bottom: 0em;
white-space: pre; white-space: pre-wrap;
} }
article h3 { article h3 {

View file

@ -112,7 +112,7 @@ app->secrets(app->config->{'secrets'}) || die $@;
app->message->max_posts(app->config->{'max_posts'}) app->message->max_posts(app->config->{'max_posts'})
if app->config->{'max_posts'}; if app->config->{'max_posts'};
app->pg->migrations->from_dir('migrations')->migrate(6); app->pg->migrations->from_dir('migrations')->migrate(7);
app->asset->store->paths(['assets']); app->asset->store->paths(['assets']);
app->asset->process('swagg.css', 'css/swagg.css'); app->asset->process('swagg.css', 'css/swagg.css');

2
migrations/7/down.sql Normal file
View file

@ -0,0 +1,2 @@
ALTER TABLE messages
ALTER COLUMN message TYPE VARCHAR(512);

2
migrations/7/up.sql Normal file
View file

@ -0,0 +1,2 @@
ALTER TABLE messages
ALTER COLUMN message TYPE VARCHAR(2048);