File tree 2 files changed +8
-13
lines changed
2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 4
4
<div class="ui stackable grid">
5
5
<div class="ui five wide column">
6
6
<div class="ui card">
7
+ <div id="profile-avatar" class="content df"/>
7
8
{{if eq .SignedUserName .Owner.Name}}
8
- <a class="image tooltip" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-position="bottom center">
9
+ <a class="image tooltip" href="{{AppSubUrl}}/user/settings" data-content="{{.i18n.Tr "user.change_avatar"}}" data-position="bottom center">
9
10
{{avatar .Owner 290}}
10
11
</a>
11
12
{{else}}
12
- <span class="image" id="profile-avatar" >
13
+ <span class="image">
13
14
{{avatar .Owner 290}}
14
15
</span>
15
16
{{end}}
17
+ </div>
16
18
<div class="content word-break profile-avatar-name">
17
19
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
18
20
<span class="username text center">{{.Owner.Name}}</span>
Original file line number Diff line number Diff line change 44
44
}
45
45
}
46
46
}
47
-
48
47
#profile-avatar {
49
48
background : none ;
50
49
padding : 1rem 1rem .25rem ;
51
-
50
+ justify-content : center ;
52
51
img {
53
52
width : 100% ;
54
53
height : auto ;
55
54
object-fit : contain ;
56
55
margin : 0 ;
57
- }
58
-
59
- @media @mediaSm {
60
- height : 250px ;
61
- overflow : hidden ;
62
-
63
- img {
64
- max-height : 767px ;
65
- max-width : 767px ;
56
+ @media @mediaSm {
57
+ width : 30vw ;
66
58
}
67
59
}
60
+
68
61
}
69
62
70
63
@media @mediaSm {
You can’t perform that action at this time.
0 commit comments