Skip to content

Commit 3ac9310

Browse files
authored
Merge branch 'main' into spanish_translations_setup_draw
2 parents befaceb + c776d01 commit 3ac9310

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/Banner/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ const { link, title } = entry.data;
1616
const banner = document.querySelector('.banner');
1717
const hideBannerBtn = document.querySelector('#hideBanner');
1818
if (banner && hideBannerBtn) {
19-
const hiddenBanner = window.localStorage.getItem('hideBanner');
19+
const hiddenBanner = window.sessionStorage.getItem('hideBanner');
2020
const title = banner.getAttribute('data-title');
2121
if (hiddenBanner !== title) {
2222
banner.removeAttribute('style');
2323
}
2424
const hideBanner = () => {
2525
banner.setAttribute('style', 'display: none');
2626
try {
27-
window.localStorage.setItem('hideBanner', title || '');
27+
window.sessionStorage.setItem('hideBanner', title || '');
2828
} catch (e) {
2929
console.error(e);
3030
}

src/components/Image/index.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const noAltText = t("No alt text");
3737
class:list={[
3838
"renderable-alt",
3939
"text-body-caption",
40-
"bg-bg-gray-40 line-clamp-3 absolute top-0 mt-sm mx-sm px-[7.5px] pb-[2.5px] rounded-xl text-ellipsis",
40+
"bg-bg-gray-40 absolute top-0 mt-sm mx-sm px-[7.5px] pb-[2.5px] rounded-xl text-ellipsis",
41+
"line-clamp-3 hover:line-clamp-none",
4142
props.visibleAltTextClass,
4243
]}
4344
>
5.23 MB
Loading

0 commit comments

Comments
 (0)