Skip to content

Commit

Permalink
Fixed word wrap issue
Browse files Browse the repository at this point in the history
  • Loading branch information
herberthk committed Aug 12, 2020
1 parent efe8ee5 commit df8e901
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 86 deletions.
4 changes: 0 additions & 4 deletions config/config.env.example

This file was deleted.

69 changes: 26 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 27 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
{
"name": "storybooks",
"version": "1.0.0",
"description": "App for creating public and private stories",
"main": "app.js",
"scripts": {
"start": "cross-env NODE_ENV=production node app",
"dev": "cross-env NODE_ENV=development nodemon app",
"postinstall": "node ./scripts/post-install.js"
},
"author": "Brad Traversy",
"license": "MIT",
"dependencies": {
"connect-mongo": "^3.2.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-handlebars": "^4.0.4",
"express-session": "^1.17.1",
"fs-extra": "^9.0.1",
"method-override": "^3.0.0",
"moment": "^2.27.0",
"mongoose": "^5.9.19",
"morgan": "^1.10.0",
"passport": "^0.4.1",
"passport-google-oauth20": "^2.0.0"
},
"devDependencies": {
"cross-env": "^7.0.2",
"nodemon": "^2.0.4"
}
"name": "storybooks",
"version": "1.0.0",
"description": "App for creating public and private stories",
"main": "app.js",
"scripts": {
"start": "cross-env NODE_ENV=production node app",
"dev": "cross-env NODE_ENV=development nodemon app"
},
"author": "Brad Traversy",
"license": "MIT",
"dependencies": {
"connect-mongo": "^3.2.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-handlebars": "^5.1.0",
"express-session": "^1.17.1",
"method-override": "^3.0.0",
"moment": "^2.27.0",
"mongoose": "^5.9.28",
"morgan": "^1.10.0",
"passport": "^0.4.1",
"passport-google-oauth20": "^2.0.0"
},
"devDependencies": {
"cross-env": "^7.0.2",
"nodemon": "^2.0.4"
}
}
21 changes: 13 additions & 8 deletions public/css/style.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
p {
margin: 10px 0 !important;
margin: 10px 0 !important;
}

.login-container {
width: 400px;
margin-top: 50px;
text-align: center;
width: 400px;
margin-top: 50px;
text-align: center;
}

.fa-small {
font-size: 16px !important;
font-size: 16px !important;
}

.btn-float {
float: left;
margin-right: 10px;
float: left;
margin-right: 10px;
}

.img-small {
width: 180px;
width: 180px;
}
.wordWrap {
word-wrap: break-word !important;
width: 100% !important;
word-break: break-word !important;
}
2 changes: 1 addition & 1 deletion views/stories/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<div class="card-content center-align">
<h5>{{title}}</h5>
<p>{{stripTags (truncate body 150)}}</p>
<p class="wordWrap">{{{stripTags (truncate body 150)}}}</p>
<br>
<div class="chip">
<img src="{{user.image}}" alt="">
Expand Down
2 changes: 1 addition & 1 deletion views/stories/show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="card story">
<div class="card-content">
<span class="card-title">{{formatDate date 'MMMM Do YYYY, h:mm:ss a'}}</span>
{{{story.body}}}
<h5 class="wordWrap">{{{story.body}}}</h5>
</div>
</div>
</div>
Expand Down

0 comments on commit df8e901

Please sign in to comment.