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

View file

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