Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Nov 9, 2023
1 parent 93027be commit d70394c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/rebuild/web/files/FileListController.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ private Integer[] getAllowEntities(ID user, boolean inQuery) {

private JSONObject formatEntityJson(Entity entity) {
return JSONUtils.toJSONObject(
new String[] { "id", "text" },
new Object[] { entity.getEntityCode(), Language.L(entity) });
new String[] { "id", "text", "icon" },
new Object[] { entity.getEntityCode(), Language.L(entity), EasyMetaFactory.valueOf(entity).getIcon() });
}

private boolean hasAttachmentFields(Entity entity) {
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/web/assets/css/rb-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,12 @@ a.link.link-icon::after {
height: 18px;
}

.img-field.avatar label.img-upload b {
width: 100%;
top: auto;
bottom: 0;
}

.img-field label.img-upload b .zmdi {
font-size: 1.2rem;
color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/assets/js/file-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class RbPreview extends React.Component {
{this.state.previewText || this.state.previewText === '' ? (
<pre className="mb-0">{this.state.previewText || <i className="text-muted">{$L('无')}</i>}</pre>
) : (
<div className="must-center">
<div className="must-center d-inline-block">
<RbSpinner fully={true} />
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/assets/js/rb-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,7 @@ class RbFormAvatar extends RbFormElement {
renderViewElement() {
return (
<div className="img-field avatar">
<a className="img-thumbnail img-upload">
<a className="img-thumbnail img-upload" style={{ cursor: 'default' }}>
<img src={this._formatUrl(this.state.value)} alt="Avatar" />
</a>
</div>
Expand Down

0 comments on commit d70394c

Please sign in to comment.