Skip to content

Commit

Permalink
modified: css/cards.css
Browse files Browse the repository at this point in the history
	modified:   js/item.js
  • Loading branch information
MEGATREX4 committed Apr 17, 2024
1 parent f122b23 commit 60a3cd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions css/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ html {
position: relative;
}

.CPContainer{
min-width: calc(100% - 900px);
.CPContainer {
min-width: calc(100vw - 300px);
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
flex-direction: column;
}

h2 {
Expand Down
18 changes: 9 additions & 9 deletions js/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ async function updateItemPage() {

//update og:image
//update meta og:image
const ogImage = document.createElement('meta');
ogImage.setAttribute('property', 'og:image');
ogImage.setAttribute('content', selectedItem.image);
document.head.appendChild(ogImage);
// const ogImage = document.createElement('meta');
// ogImage.setAttribute('property', 'og:image');
// ogImage.setAttribute('content', selectedItem.image);
// document.head.appendChild(ogImage);

//update meta twitter:description
const twitterDescription = document.createElement('meta');
Expand All @@ -234,11 +234,11 @@ async function updateItemPage() {
twitterTitle.setAttribute('content', "СУМ" + " - переклад " + selectedItem.title);
document.head.appendChild(twitterTitle);

//update meta twitter:image
const twitterImage = document.createElement('meta');
twitterImage.setAttribute('name', 'twitter:image');
twitterImage.setAttribute('content', selectedItem.image);
document.head.appendChild(twitterImage);
// update meta twitter:image
// const twitterImage = document.createElement('meta');
// twitterImage.setAttribute('name', 'twitter:image');
// twitterImage.setAttribute('content', selectedItem.image);
// document.head.appendChild(twitterImage);


// Create HTML string for tooltip content
Expand Down

0 comments on commit 60a3cd2

Please sign in to comment.