-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditor.css
More file actions
39 lines (36 loc) · 1.09 KB
/
editor.css
File metadata and controls
39 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
body{padding:20px;}
.table td{vertical-align:middle;}
.truncate-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.thumb{width:56px;height:56px;object-fit:cover;border-radius:6px;border:1px solid #ddd;}
/* View modal: wrap everything */
.view-body{overflow-wrap:anywhere; word-wrap:break-word;}
.view-body pre.wrap-pre{
white-space:pre-wrap; /* enable wrapping inside <pre> */
word-break:break-word;
overflow-wrap:anywhere;
background:#f8f9fa;
border:1px solid #e5e7eb;
padding:10px;
border-radius:6px;
}
.view-cover{
max-height:30vh; /* <= 30% of viewport height */
width:auto;
height:auto;
object-fit:contain; /* preserve aspect ratio */
border-radius:6px;
border:1px solid #ddd;
}
/* Edit modal previews */
.edit-preview{
max-height:120px;
width:auto;
height:auto;
object-fit:contain;
border:1px solid #ddd;
border-radius:6px;
display:block;
margin-top:6px;
}
/* Avoid overflow in table cells */
table .small, table td{word-break:break-word;overflow-wrap:anywhere;}