Skip to content

Commit c86d040

Browse files
committed
fresh commits with just irc format ditching avatar and thumbnail size fixes. no more custom emotes, i don't know what i'm doing and it's a pain in the keister.
1 parent e4f27f0 commit c86d040

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

res/css/views/messages/_MVideoBody.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
span.mx_MVideoBody {
1818
video.mx_MVideoBody {
1919
max-width: 100%;
20-
height: auto;
20+
max-height: 300px;
2121
border-radius: 4px;
2222
}
2323
}

res/css/views/rooms/_IRCLayout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ $irc-line-height: $font-18px;
7676
width: $font-14px !important;
7777
font-size: $font-10px !important;
7878
line-height: $font-15px !important;
79+
visibility: hidden;
7980
}
8081
}
8182

src/components/views/messages/MImageBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
340340
}
341341

342342
// The maximum height of the thumbnail as it is rendered as an <img>
343-
const maxHeight = forcedHeight || Math.min((this.props.maxImageHeight || 600), infoHeight);
343+
const maxHeight = forcedHeight || Math.min((this.props.maxImageHeight || 240), infoHeight);
344344
// The maximum width of the thumbnail, as dictated by its natural
345345
// maximum height.
346346
const maxWidth = infoWidth * maxHeight / infoHeight;

0 commit comments

Comments
 (0)