Browse Source
Better handling of pictures in Messages or Posts
Better handling of pictures in Messages or Posts
Fix NSFW spoilers Cleanup CSS grid and reuse it for PublishBrief image picker Add a little gallery for Contacts and Chatrooms based on recent pictures publishedpull/933/head
20 changed files with 164 additions and 111 deletions
-
1CHANGELOG.md
-
9app/Conference.php
-
2app/Info.php
-
2app/Message.php
-
7app/helpers/StringHelper.php
-
2app/widgets/Chat/Chat.php
-
6app/widgets/ChatActions/ChatActions.php
-
7app/widgets/ContactActions/ContactActions.php
-
28app/widgets/ContactActions/_contactactions_drawer.tpl
-
1app/widgets/ContactData/locales.ini
-
2app/widgets/Presence/presence.css
-
2app/widgets/Preview/preview.css
-
20app/widgets/PublishBrief/_publishbrief_images.tpl
-
27app/widgets/PublishBrief/publishbrief.css
-
2app/widgets/Rooms/Rooms.php
-
20app/widgets/Rooms/_rooms_info.tpl
-
30database/migrations/20200514143915_change_picture_type_messages_table.php
-
6public/scripts/movim_utils.js
-
30public/theme/css/article.css
-
71public/theme/css/grid.css
@ -0,0 +1,30 @@ |
|||
<?php |
|||
|
|||
use Movim\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
|
|||
class ChangePictureTypeMessagesTable extends Migration |
|||
{ |
|||
public function up() |
|||
{ |
|||
$this->schema->table('messages', function (Blueprint $table) { |
|||
$table->dropColumn('picture'); |
|||
}); |
|||
|
|||
$this->schema->table('messages', function (Blueprint $table) { |
|||
$table->boolean('picture')->default(false); |
|||
$table->index('picture'); |
|||
}); |
|||
} |
|||
|
|||
public function down() |
|||
{ |
|||
$this->schema->table('messages', function (Blueprint $table) { |
|||
$table->dropColumn('picture'); |
|||
}); |
|||
|
|||
$this->schema->table('messages', function (Blueprint $table) { |
|||
$table->text('picture')->nullable(); |
|||
}); |
|||
} |
|||
} |
|||
@ -1,56 +1,47 @@ |
|||
/* Grid */ |
|||
ul.grid { |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
} |
|||
|
|||
ul.grid > li { |
|||
background-size: cover; |
|||
width: calc(25% - 0.2em); |
|||
padding: 0; |
|||
padding-bottom: 25%; |
|||
float: left; |
|||
position: relative; |
|||
flex: 0 1 25%; |
|||
background-repeat: no-repeat; |
|||
background-position: center center; |
|||
box-sizing: border-box; |
|||
margin: 0.1em; |
|||
background-size: cover; |
|||
position: relative; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
|
|||
ul.grid.third > li { |
|||
flex: 0 1 33.33%; |
|||
} |
|||
|
|||
ul.grid.active > li:hover { |
|||
cursor: pointer; |
|||
opacity: 0.8; |
|||
} |
|||
|
|||
ul.grid > li > nav { |
|||
ul.grid.active > li i { |
|||
font-size: 4rem; |
|||
} |
|||
|
|||
ul.grid.active > li span { |
|||
position: absolute; |
|||
bottom: 0; |
|||
right: 0; |
|||
background-color: rgba(0, 0, 0, 0.8); |
|||
color: white; |
|||
background-color: rgba(0, 0, 0, 0.5); |
|||
width: 100%; |
|||
padding: 0 1rem; |
|||
box-sizing: border-box; |
|||
white-space: nowrap; |
|||
text-overflow: ellipsis; |
|||
overflow: hidden; |
|||
font-size: 2rem; |
|||
line-height: 5rem; |
|||
} |
|||
|
|||
@media screen and (max-width: 1024px) { |
|||
ul.grid > li { |
|||
width: calc(33.33% - 0.2em); |
|||
padding-bottom: 33.33%; |
|||
} |
|||
} |
|||
|
|||
@media screen and (max-width: 640px) { |
|||
ul.grid > li { |
|||
width: calc(50% - 0.2em); |
|||
padding-bottom: 50%; |
|||
} |
|||
font-size: 1.5rem; |
|||
padding: 0 0.5rem; |
|||
line-height: 2.5rem; |
|||
border-radius: 0.3rem 0 0; |
|||
} |
|||
|
|||
ul.grid:after { |
|||
content: ""; |
|||
ul.grid > li:after { |
|||
content: ''; |
|||
display: block; |
|||
clear: both; |
|||
} |
|||
|
|||
ul.grid.padded { |
|||
padding: 0; |
|||
} |
|||
padding-bottom: 100%; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue