Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
51145d62
Commit
51145d62
authored
Jun 06, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ad banner uses object-fit:contain to show full image without crop
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
4274dea2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
game.js
public/js/modules/chess/scenes/game.js
+1
-1
No files found.
public/js/modules/chess/scenes/game.js
View file @
51145d62
...
@@ -893,7 +893,7 @@ async function loadAdBanner(el) {
...
@@ -893,7 +893,7 @@ async function loadAdBanner(el) {
const
wrapper
=
el
.
querySelector
(
'#ad-banner-top'
);
const
wrapper
=
el
.
querySelector
(
'#ad-banner-top'
);
const
content
=
el
.
querySelector
(
'#ad-content'
);
const
content
=
el
.
querySelector
(
'#ad-content'
);
if
(
!
wrapper
||
!
content
)
return
;
if
(
!
wrapper
||
!
content
)
return
;
content
.
innerHTML
=
`<img src="
${
res
.
image_url
}
" style="width:100%;height:100%;object-fit:co
ver
;border-radius:12px;-webkit-mask-image:radial-gradient(ellipse 90% 85% at center,black 60%,transparent 100%);mask-image:radial-gradient(ellipse 90% 85% at center,black 60%,transparent 100%);">`
;
content
.
innerHTML
=
`<img src="
${
res
.
image_url
}
" style="width:100%;height:100%;object-fit:co
ntain
;border-radius:12px;-webkit-mask-image:radial-gradient(ellipse 90% 85% at center,black 60%,transparent 100%);mask-image:radial-gradient(ellipse 90% 85% at center,black 60%,transparent 100%);">`
;
wrapper
.
style
.
display
=
'flex'
;
wrapper
.
style
.
display
=
'flex'
;
window
.
__adClick
=
()
=>
{
window
.
__adClick
=
()
=>
{
if
(
res
.
click_url
)
window
.
open
(
res
.
click_url
,
'_blank'
);
if
(
res
.
click_url
)
window
.
open
(
res
.
click_url
,
'_blank'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment