Skip to content

Commit

Permalink
Adjustments of input fields for mobile devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpastor97 committed Aug 21, 2024
1 parent daa4de6 commit 84e6e78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/announcements/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,16 @@ search: false
const labelWidth = label.offsetWidth;
const inputContainer = document.getElementById('inputContainer');
if (bannerWidth <= 800 && bannerWidth > 400) { // Adjust this value as needed
if (bannerWidth <= 600 && bannerWidth > 400) { // Adjust this value as needed
label.textContent = 'Join the community \u2192 ';
inputContainer.style.flexDirection = 'column';
inputContainer.style.alignItems = 'center';
inputContainer.style.gap = '15px';
} else if (bannerWidth > 600 && bannerWidth <= 800) { // Adjust this value as needed
label.textContent = 'Join the community \u2192 ';
inputContainer.style.flexDirection = 'row';
inputContainer.style.alignItems = 'center';
inputContainer.style.gap = '10px'; // Default gap value for row layout
} else if (bannerWidth <= 400) {
label.textContent = '';
inputContainer.style.flexDirection = 'column';
Expand Down

0 comments on commit 84e6e78

Please sign in to comment.