Skip to content

Commit 534c2cb

Browse files
committed
v2-Beta12 release
1 parent c59dba1 commit 534c2cb

File tree

13 files changed

+1434
-1743
lines changed

13 files changed

+1434
-1743
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ bench restart
188188
| `disable_reload()` | Deny reloading attachments and hide reload button (Frappe >= v13.0.0). |
189189
| `enable_remove()` | Allow removing and clearing attachments and show the clear and remove buttons. |
190190
| `disable_remove()` | Deny removing and clearing attachments and hide the clear and remove buttons. |
191-
| `show_files()` | Open the uploaded files list and preview dialog (Only when multiple files is allowed). |
192-
| `show_preview()` | Open the preview dialog of the uploaded file (Only when multiple files is not allowed). |
193191
| `set_options(JSON)` | Set or change the plugin current options. |
194192

195193
---

frappe_better_attach_control/public/css/better_attach.bundle.css

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,9 @@
1212
.ba-hidden-overflow {
1313
overflow: hidden;
1414
}
15-
.ba-preview-holder {
16-
height: 50%;
17-
}
18-
.ba-preview-file {
19-
max-width: 100%;
20-
height: auto;
21-
}
2215
.ba-attachment {
23-
padding-top: 8px !important;
24-
padding-bottom: 8px !important;
25-
border-bottom: 1px solid #e5e5e5;
26-
}
27-
.ba-attachment:first-child {
28-
padding-top: 0;
29-
}
30-
.ba-attachment:last-child {
31-
padding-bottom: 0;
32-
border-bottom: 0;
16+
padding-top: 4px !important;
17+
padding-bottom: 4px !important;
3318
}
3419
.ba-link, .ba-link:hover {
3520
text-decoration: none;
@@ -41,35 +26,39 @@
4126
text-overflow: ellipsis;
4227
vertical-align: middle;
4328
color: #000;
44-
font-size: .9rem;
45-
font-weight: 300;
46-
line-height: 1.2;
29+
font-size: .8rem;
4730
}
4831
[data-theme="dark"] .ba-link {
4932
color: #fff;
5033
}
5134
.ba-meta {
35+
margin-left: 5px;
36+
margin-right: 0;
5237
padding: 0;
53-
color: #000;
54-
font-size: .7rem;
55-
font-weight: 300;
56-
text-align: center;
38+
color: #6c757d;
39+
font-size: .6rem;
5740
}
5841
[data-theme="dark"] .ba-meta {
5942
color: #fff;
6043
}
44+
[data-theme="rtl"] .ba-meta {
45+
margin-left: 0;
46+
margin-right: 5px;
47+
}
48+
.ba-remove {
49+
padding: 2px;
50+
}
6151
.ba-file {
62-
width: 25px !important;
63-
height: 25px !important;
52+
width: 15px !important;
53+
height: 15px !important;
6454
margin-left: 0;
65-
margin-right: 10px;
55+
margin-right: 5px;
6656
background-position: center center;
6757
background-repeat: no-repeat;
6858
background-size: contain;
69-
background-attachment: fixed;
7059
}
7160
html[dir="rtl"] .ba-file {
72-
margin-left: 10px;
61+
margin-left: 5px;
7362
margin-right: 0;
7463
}
7564
.ba-image {

0 commit comments

Comments
 (0)