css fix
This commit is contained in:
+10
-8
@@ -762,8 +762,8 @@ i.search {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
width: inherit;
|
font-size: 2.4rem;
|
||||||
height: inherit;
|
line-height: 3rem;
|
||||||
}
|
}
|
||||||
.contact-box .text-box {
|
.contact-box .text-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -885,8 +885,6 @@ i.search {
|
|||||||
|
|
||||||
.avatar-upload .avatar-box > .material-icons {
|
.avatar-upload .avatar-box > .material-icons {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 7rem;
|
|
||||||
height: 7rem;
|
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
line-height: 7rem;
|
line-height: 7rem;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@@ -986,6 +984,11 @@ i.search {
|
|||||||
margin-right: 0.35rem;
|
margin-right: 0.35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#topic-caption-panel .avatar-box > .material-icons {
|
||||||
|
font-size: 2.4rem;
|
||||||
|
line-height: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
#hide-message-view {
|
#hide-message-view {
|
||||||
display: block;
|
display: block;
|
||||||
margin-right: 0.35rem;
|
margin-right: 0.35rem;
|
||||||
@@ -1667,10 +1670,8 @@ ul.tabbar li.active > a:after {
|
|||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#self-avatar.material-icons {
|
#self-avatar .material-icons {
|
||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
width: 3rem;
|
|
||||||
height: 3rem;
|
|
||||||
line-height: 3rem;
|
line-height: 3rem;
|
||||||
}
|
}
|
||||||
.avatar-box .material-icons {
|
.avatar-box .material-icons {
|
||||||
@@ -1763,7 +1764,8 @@ ul.tabbar li.active > a:after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chip .avatar-box .material-icons {
|
.chip .avatar-box .material-icons {
|
||||||
font-size: 1.8rem;
|
font-size: 1.4rem;
|
||||||
|
line-height: 1.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip .spacer {
|
.chip .spacer {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -54,7 +54,12 @@ export default class InPlaceEdit extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEditingFinished() {
|
handleEditingFinished(event) {
|
||||||
|
if (this.props.required && !event.target.checkValidity()) {
|
||||||
|
// Empty input
|
||||||
|
this.setState({value: this.props.value, active: false});
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.setState({active: false});
|
this.setState({active: false});
|
||||||
let value = this.state.value.trim();
|
let value = this.state.value.trim();
|
||||||
if ((value || this.props.value) && (value !== this.props.value)) {
|
if ((value || this.props.value) && (value !== this.props.value)) {
|
||||||
|
|||||||
+12
-1
@@ -1760,6 +1760,8 @@ var InfoView = function (_React$Component) {
|
|||||||
}, {
|
}, {
|
||||||
key: "handleFullNameUpdate",
|
key: "handleFullNameUpdate",
|
||||||
value: function handleFullNameUpdate(fn) {
|
value: function handleFullNameUpdate(fn) {
|
||||||
|
fn = fn.trim();
|
||||||
|
|
||||||
if (this.state.fullName !== fn) {
|
if (this.state.fullName !== fn) {
|
||||||
this.setState({
|
this.setState({
|
||||||
fullName: fn
|
fullName: fn
|
||||||
@@ -2052,6 +2054,7 @@ var InfoView = function (_React$Component) {
|
|||||||
placeholder: this.state.groupTopic ? "Group name" : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Unknown"),
|
placeholder: this.state.groupTopic ? "Group name" : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Unknown"),
|
||||||
readOnly: !this.state.owner,
|
readOnly: !this.state.owner,
|
||||||
value: this.state.fullName,
|
value: this.state.fullName,
|
||||||
|
required: true,
|
||||||
onFinished: this.handleFullNameUpdate
|
onFinished: this.handleFullNameUpdate
|
||||||
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
|
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
|
||||||
className: "small"
|
className: "small"
|
||||||
@@ -7860,7 +7863,15 @@ var InPlaceEdit = function (_React$Component) {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "handleEditingFinished",
|
key: "handleEditingFinished",
|
||||||
value: function handleEditingFinished() {
|
value: function handleEditingFinished(event) {
|
||||||
|
if (this.props.required && !event.target.checkValidity()) {
|
||||||
|
this.setState({
|
||||||
|
value: this.props.value,
|
||||||
|
active: false
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
active: false
|
active: false
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user