Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit of LightBox fixes #453

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Commit of LightBox fixes #453

merged 1 commit into from
Dec 10, 2024

Conversation

Justinabes007
Copy link
Contributor

@Justinabes007 Justinabes007 commented Dec 6, 2024

Gallery Tour Operator Light Box fixes.

Adjusted CSS and included SVG icons:

Display before:
Screenshot 2024-12-06 at 10 31 28

Display After CSS added:
Screenshot 2024-12-06 at 10 31 03

Summary by CodeRabbit

  • Style: Updated the LightBox component with enhanced positioning and styling for a more intuitive user experience.
  • New Feature: Introduced custom SVG icons in the LightBox component, replacing previous font icons for improved visual consistency and performance.

@Justinabes007 Justinabes007 added [Type] Bug An existing feature does not function as intended [Dev] CSS Styling Related to editor and front end styles, CSS-specific issues. labels Dec 6, 2024
@Justinabes007 Justinabes007 added this to the 2.0.0 milestone Dec 6, 2024
@Justinabes007 Justinabes007 self-assigned this Dec 6, 2024
Copy link

coderabbitai bot commented Dec 6, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

github-actions bot commented Dec 6, 2024

Image description CodeRabbit

Walkthrough

This changeset introduces a series of style enhancements to the LightBox component in our application. It includes adjustments to positions, styles, and the addition of SVG icons. The update also replaces some font icons with custom SVG backgrounds for better visual appeal.

Changes

Files Summaries
assets/css/style.css CSS adjustments for LightBox component, including position, style changes, and addition of SVG icons. Font icons replaced with custom SVG backgrounds.

🐰 "In the land of code, where the shadows lie,

We tweak, we adjust, under the digital sky.

With SVGs bright, and positions just right,

Our LightBox now shines, oh so bright! ✨"


Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between eb6a701 and e0a6fc9 commits.
Files selected (1)
  • assets/css/style.css (4)
Files ignored due to filter (3)
  • assets/img/left-arrow-new.svg
  • assets/img/left-arrow.svg
  • assets/img/right-arrow.svg
Review comments generated (8)
  • Review: 6
  • LGTM: 2

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Comment on lines +168 to 170
right: 52px;
top: 35px;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The positioning of the .slick-lightbox-close has been changed. Ensure that this change doesn't affect other elements that might be positioned relative to it.

-  right: 32px;
-  top: 32px;
+  right: 52px;
+  top: 35px;

Comment on lines 173 to +180
.lsx-to-slider .slick-arrow,
.slick-lightbox-inner .slick-arrow {
background: transparent;
border-radius: 50%;
position:absolute;
top:50%;
border-style: solid;
border-color: #fff;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The position:absolute; and top:50%; properties have been added to the .lsx-to-slider .slick-arrow, .slick-lightbox-inner .slick-arrow selectors. Make sure these changes don't disrupt the layout of the page or interfere with other elements.

+  position:absolute;
+  top:50%;

Comment on lines +191 to 192
color: white;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The color property has been added to the arrow selectors. This should improve visibility but ensure it aligns with the overall design theme.

+  color: white;

Comment on lines +193 to +199
.slick-prev svg, .slick-next svg{color: white;}

.lsx-to-slider .slick-arrow:before,
.slick-lightbox-inner .slick-arrow:before {
display: block;
font-family: "FontAwesome";
font-family: "slick";
color: white;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The font family for the .lsx-to-slider .slick-arrow:before, .slick-lightbox-inner .slick-arrow:before selectors has been changed from "FontAwesome" to "slick". If "slick" is not a defined font-family in your CSS or HTML, this could cause issues.

-  font-family: "FontAwesome";
+  font-family: "slick";

Comment on lines +216 to 222
content: ''; /* Remove font icon */
background: url('../img/left-arrow-new.svg') no-repeat center center;
width: 40px;
height: 40px;
display: inline-block;
left: 10px;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The content of the .lsx-to-slider .slick-arrow.slick-prev:before, .slick-lightbox-inner .slick-arrow.slick-prev:before selectors has been replaced with an SVG background. Ensure that the path to the SVG file is correct and that the SVG file exists in the specified location.

-  content: "\f104";
-  left: 1.1rem;
+  content: ''; /* Remove font icon */
+  background: url('../img/left-arrow-new.svg') no-repeat center center;
+  width: 40px;
+  height: 40px;
+  display: inline-block;
+  left: 10px;

Comment on lines 223 to +230
.lsx-to-slider .slick-arrow.slick-next:before,
.slick-lightbox-inner .slick-arrow.slick-next:before {
content: "\f105";
left: 1.5rem;
content: ''; /* Remove font icon */
background: url('../img/right-arrow.svg') no-repeat center center;
width: 40px;
height: 40px;
display: inline-block;
left: 12px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The content of the .lsx-to-slider .slick-arrow.slick-next:before, .slick-lightbox-inner .slick-arrow.slick-next:before selectors has been replaced with an SVG background. Ensure that the path to the SVG file is correct and that the SVG file exists in the specified location.

-  content: "\f105";
-  left: 1.5rem;
+  content: ''; /* Remove font icon */
+  background: url('../img/right-arrow.svg') no-repeat center center;
+  width: 40px;
+  height: 40px;
+  display: inline-block;
+  left: 12px;

@krugazul krugazul merged commit 5b9410d into 2.0-beta-3 Dec 10, 2024
6 of 8 checks passed
@krugazul krugazul deleted the lightbox-fixes branch December 10, 2024 08:25
@ZaredRogers ZaredRogers linked an issue Jan 9, 2025 that may be closed by this pull request
53 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Dev] CSS Styling Related to editor and front end styles, CSS-specific issues. [Type] Bug An existing feature does not function as intended
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Parent: Tour Operator Blocks
2 participants