spogulis no https://github.com/vector-im/element-web
Center image
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
vecāks
2c5f3f31b1
revīzija
633221f012
|
|
@ -40,13 +40,9 @@ limitations under the License.
|
||||||
|
|
||||||
.mx_ImageView_content img {
|
.mx_ImageView_content img {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
//max-width: 100%;
|
|
||||||
/* XXX: max-height interacts badly with flex on Chrome and doesn't relayout properly until you refresh */
|
|
||||||
//max-height: 100%;
|
|
||||||
/* object-fit hack needed for Chrome due to Chrome not re-laying-out until you refresh */
|
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
/* background-image: url('$(res)/img/trans.png'); */
|
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_ImageView_panel {
|
.mx_ImageView_panel {
|
||||||
|
|
|
||||||
Notiek ielāde…
Atsaukties uz šo jaunā problēmā