Update the looks a bit more

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-02-24 08:11:53 +01:00
parent 768d268189
commit ab79deb88f
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
2 changed files with 31 additions and 21 deletions

View File

@ -49,24 +49,32 @@ limitations under the License.
} }
.mx_ImageView_panel { .mx_ImageView_panel {
width: 100%;
height: 68px;
position: absolute; position: absolute;
z-index: 1000; z-index: 1000;
align-self: flex-start; align-self: flex-start;
pointer-events: all; pointer-events: all;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 100%; align-items: center;
} }
.mx_ImageView_toolbar { .mx_ImageView_toolbar {
right: 0; right: 0;
padding: 50px 50px 0 0; padding-right: 18px;
display: flex; display: flex;
align-items: center;
}
.mx_ImageView_toolbar_buttons {
display: flex;
align-items: center;
} }
.mx_ImageView_label { .mx_ImageView_label {
left: 0; left: 0;
padding: 50px 0 0 50px; padding-left: 18px;
text-align: left; text-align: left;
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@ -227,7 +227,7 @@ export default class ImageView extends React.Component {
if (mayRedact) { if (mayRedact) {
redactButton = ( redactButton = (
<AccessibleButton className="mx_ImageView_button" title={_t("Remove")} onClick={ this.onRedactClick }> <AccessibleButton className="mx_ImageView_button" title={_t("Remove")} onClick={ this.onRedactClick }>
<img src={require("../../../../res/img/trash-red.svg")} alt={ _t('Remove') } width="18" height="18" /> <img src={require("../../../../res/img/trash-red.svg")} alt={ _t('Remove') } width="24" height="24" />
</AccessibleButton> </AccessibleButton>
); );
} }
@ -263,24 +263,26 @@ export default class ImageView extends React.Component {
{ metadata } { metadata }
</div> </div>
<div className="mx_ImageView_toolbar"> <div className="mx_ImageView_toolbar">
{ redactButton } <div className="mx_ImageView_toolbar_buttons">
<AccessibleButton className="mx_ImageView_button" title={_t("Rotate Right")} onClick={ this.onRotateClockwiseClick }> { redactButton }
<img src={require("../../../../res/img/image-view/rotate-cw.svg")} alt={ _t('Rotate clockwise') } width="18" height="18" /> <AccessibleButton className="mx_ImageView_button" title={_t("Rotate Right")} onClick={ this.onRotateClockwiseClick }>
</AccessibleButton> <img src={require("../../../../res/img/image-view/rotate-cw.svg")} alt={ _t('Rotate clockwise') } width="24" height="24" />
<AccessibleButton className="mx_ImageView_button" title={_t("Rotate Left")} onClick={ this.onRotateCounterClockwiseClick }> </AccessibleButton>
<img src={require("../../../../res/img/image-view/rotate-ccw.svg")} alt={ _t('Rotate counter-clockwise') } width="18" height="18" /> <AccessibleButton className="mx_ImageView_button" title={_t("Rotate Left")} onClick={ this.onRotateCounterClockwiseClick }>
</AccessibleButton> <img src={require("../../../../res/img/image-view/rotate-ccw.svg")} alt={ _t('Rotate counter-clockwise') } width="24" height="24" />
<AccessibleButton className="mx_ImageView_button" title={_t("Zoom out")} onClick={ this.onZoomOutClick }> </AccessibleButton>
<img src={require("../../../../res/img/image-view/zoom-out.svg")} alt={ _t('Zoom out') } width="18" height="18" /> <AccessibleButton className="mx_ImageView_button" title={_t("Zoom out")} onClick={ this.onZoomOutClick }>
</AccessibleButton> <img src={require("../../../../res/img/image-view/zoom-out.svg")} alt={ _t('Zoom out') } width="24" height="24" />
<AccessibleButton className="mx_ImageView_button" title={_t("Zoom in")} onClick={ this.onZoomInClick }> </AccessibleButton>
<img src={require("../../../../res/img/image-view/zoom-in.svg")} alt={ _t('Zoom in') } width="18" height="18" /> <AccessibleButton className="mx_ImageView_button" title={_t("Zoom in")} onClick={ this.onZoomInClick }>
</AccessibleButton> <img src={require("../../../../res/img/image-view/zoom-in.svg")} alt={ _t('Zoom in') } width="24" height="24" />
<a className="mx_ImageView_button" href={ this.props.src } download={ this.props.name } title={_t("Download")} target="_blank" rel="noopener"> </AccessibleButton>
<img src={require("../../../../res/img/image-view/download.svg")} width="18" height="18" alt={ _t('Download') } /> <a className="mx_ImageView_button" href={ this.props.src } download={ this.props.name } title={_t("Download")} target="_blank" rel="noopener">
</a> <img src={require("../../../../res/img/image-view/download.svg")} width="24" height="24" alt={ _t('Download') } />
</a>
</div>
<AccessibleButton className="mx_ImageView_button" title={_t("Close")} onClick={ this.props.onFinished }> <AccessibleButton className="mx_ImageView_button" title={_t("Close")} onClick={ this.props.onFinished }>
<img src={require("../../../../res/img/image-view/close.svg")} width="18" height="18" alt={ _t('Close') } /> <img src={require("../../../../res/img/image-view/close.svg")} width="32" height="32" alt={ _t('Close') } />
</AccessibleButton> </AccessibleButton>
</div> </div>
</div> </div>