Browse Source

Fix scrollbar styles on compose textarea, small bugs (#10292)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
6a3f08661f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions
  1. +1
    -1
      app/javascript/mastodon/features/compose/components/poll_form.js
  2. +1
    -1
      app/javascript/mastodon/features/notifications/components/notification.js
  3. +5
    -0
      app/javascript/styles/mastodon/components.scss

+ 1
- 1
app/javascript/mastodon/features/compose/components/poll_form.js View File

@ -48,7 +48,7 @@ class Option extends React.PureComponent {
<input
type='text'
placeholder={intl.formatMessage(messages.option_placeholder, { number: index + 1 })}
maxlength={25}
maxLength={25}
value={title}
onChange={this.handleOptionTitleChange}
/>

+ 1
- 1
app/javascript/mastodon/features/notifications/components/notification.js View File

@ -33,7 +33,7 @@ class Notification extends ImmutablePureComponent {
onFavourite: PropTypes.func.isRequired,
onReblog: PropTypes.func.isRequired,
onToggleHidden: PropTypes.func.isRequired,
status: PropTypes.option,
status: ImmutablePropTypes.map,
intl: PropTypes.object.isRequired,
getScrollPosition: PropTypes.func,
updateScrollBottom: PropTypes.func,

+ 5
- 0
app/javascript/styles/mastodon/components.scss View File

@ -357,6 +357,11 @@
padding-bottom: 0;
padding-right: 10px + 22px;
resize: none;
scrollbar-color: initial;
&::-webkit-scrollbar {
all: unset;
}
@media screen and (max-width: 600px) {
height: 100px !important; // prevent auto-resize textarea

Loading…
Cancel
Save