CSS cleanup

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-25 11:50:50 +01:00
parent dc283241aa
commit 1955fff08c
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 47 additions and 60 deletions

View file

@ -34,10 +34,9 @@ limitations under the License.
}
.mx_ImageView_image {
object-fit: contain;
pointer-events: all;
max-width: 100vw;
max-width: 70vw;
max-height: 70vh;
min-width: 100px;
min-height: 100px;
@ -46,43 +45,33 @@ limitations under the License.
.mx_ImageView_panel {
width: 100%;
height: 68px;
align-self: flex-start;
display: flex;
justify-content: space-between;
align-items: center;
}
.mx_ImageView_toolbar {
padding-right: 16px;
right: 0;
display: flex;
align-items: center;
}
.mx_ImageView_toolbar_buttons {
display: flex;
align-items: center;
pointer-events: all;
}
.mx_ImageView_info_wrapper {
pointer-events: all;
padding-left: 32px;
left: 0;
text-align: left;
display: flex;
justify-content: center;
flex-direction: row;
color: $lightbox-fg-color;
align-items: center;
color: $lightbox-fg-color;
}
.mx_ImageView_info {
padding-left: 12px;
pointer-events: all;
display: flex;
flex-direction: column;
}
.mx_ImageView_toolbar {
padding-right: 16px;
pointer-events: all;
display: flex;
align-items: center;
}
.mx_ImageView_button {
margin-left: 24px;
display: block;

View file

@ -308,7 +308,6 @@ export default class ImageView extends React.Component {
<div className="mx_ImageView_panel">
{info}
<div className="mx_ImageView_toolbar">
<div className="mx_ImageView_toolbar_buttons">
<AccessibleTooltipButton
className="mx_ImageView_button mx_ImageView_button_rotateCW"
title={_t("Rotate Right")}
@ -348,7 +347,6 @@ export default class ImageView extends React.Component {
{this.renderContextMenu()}
</div>
</div>
</div>
<div className="mx_ImageView_image_wrapper">
<img
src={this.props.src}