Add OEmbed iframe HTML, convert emojis on public pages, increase size of attachment thumbnails

Tento commit je obsažen v:
Eugen Rochko
2016-12-18 15:20:39 +01:00
rodič 6de079a5af
revize aed25932b5
11 změnil soubory, kde provedl 72 přidání a 7 odebrání

Zobrazit soubor

@ -1,2 +1,3 @@
//= require jquery
//= require jquery_ujs
//= require extras

8
app/assets/javascripts/extras.jsx Normální soubor
Zobrazit soubor

@ -0,0 +1,8 @@
import emojify from './components/emoji'
$(() => {
$.each($('.entry .content, .name, .account__header__content'), (_, content) => {
const $content = $(content);
$content.html(emojify($content.html()));
});
});

Zobrazit soubor

@ -114,6 +114,18 @@ body {
padding: 0;
}
&.embed {
background: transparent;
margin: 0;
.container {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
}
@media screen and (max-width: 360px) {
padding-bottom: 0;
}

Zobrazit soubor

@ -232,3 +232,24 @@
}
}
}
.embed {
.activity-stream {
border-radius: 4px;
box-shadow: none;
.entry {
&:last-child {
border-radius: 0 0 4px 4px;
}
&:first-child {
border-radius: 4px 4px 0 0;
&:last-child {
border-radius: 4px;
}
}
}
}
}