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

Make admin nav responsive #2241

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Copy link
Contributor

coderabbitai bot commented Feb 5, 2025

Walkthrough

The changes introduce new styles in the CSS file for the #frm_bs_dropdown element and its tooltip, which are hidden on screens 850px or smaller. For larger screens, these elements are displayed. Additionally, a new container .frm_small_device_message_container is added to the HTML for smaller devices, containing a message, an SVG graphic, and a button. This container is hidden by default but shown on screens 475px wide or smaller, enhancing the user interface for mobile users.

Changes

File Change Summary
css/frm_admin.css • Added new CSS rules for #frm_bs_dropdown and its tooltip with display properties based on screen size.
• Introduced .frm_small_device_message_container with responsive display properties.
• Added .frm_small_device_message for layout on small screens.
classes/views/frm-forms/edit.php • Added a new <div> with class frm_small_device_message_container containing a message, SVG graphic, and a button for users on smaller devices. No alterations to existing elements were made.
classes/controllers/FrmFormsController.php • Introduced a new public static method include_device_too_small_message() to generate HTML content for small device notifications.
• Modified route() method to call the new message method unconditionally.
classes/controllers/FrmEntriesController.php • Added a call to FrmFormsController::include_device_too_small_message(); in the route method to display the device size message.
classes/controllers/FrmStylesController.php • Added a call to FrmFormsController::include_device_too_small_message(); in the route method to display the device size message.

Possibly related PRs

  • Update Default Form Styling #1640: The changes in the main PR, which introduce new CSS classes and modify existing styles for responsive design, are related to the retrieved PR as both involve updates to the css/frm_admin.css file, specifically enhancing the visual presentation of form elements.
  • Output custom css classes when rendering forms #2194: The changes in the main PR introduce new CSS classes and modify existing ones, while the retrieved PR focuses on dynamically adding CSS classes during form rendering, indicating a connection through the use of CSS class manipulation.
  • Drop reference to unused CSS class pro feature #2138: The changes in the main PR, which introduce new CSS classes for responsive design, are related to the modifications in the retrieved PR that also involve updates to the CSS file for improved responsiveness and visual hierarchy.

Suggested labels

run tests

Suggested reviewers

  • lauramekaj1
  • Crabcyborg
  • truongwp

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 PHPStan (2.0.3)

/bin/bash: line 1: /vendor/bin/phpstan: No such file or directory

Tip

🌐 Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
css/frm_admin.css (2)

8788-8791: Adjust publishing button alignment

The margin-left: auto on #frm-publishing could be made more explicit with flexbox:

-#frm-publishing {
-  margin-left: auto;
-}
+#frm-publishing {
+  display: flex;
+  justify-content: flex-end;
+  flex: 1;
+}

This makes the alignment intention clearer and provides better browser compatibility.


8789-8791: Improve last child margin handling

The margin-left: 0 on the last child could be handled more elegantly:

-#frm_top_bar > .frm-full-close:last-child {
-  margin-left: 0;
-}
+#frm_top_bar > :last-child {
+  margin-left: 0;
+}

This makes the rule more generic and maintainable.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9ace900 and 2bd0ca3.

📒 Files selected for processing (1)
  • css/frm_admin.css (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run ESLint
🔇 Additional comments (1)
css/frm_admin.css (1)

8774-8791: Consider accessibility implications

The fixed navigation at the bottom may cause accessibility issues:

  1. Verify that keyboard navigation works properly with the fixed positioning
  2. Ensure sufficient touch targets for mobile users
  3. Consider adding aria-labels for screen readers
  4. Test with different screen sizes and orientations

Run the following to check for potential accessibility issues:

Comment on lines +8774 to +8791
#frm_top_bar ul.frm_form_nav {
padding: 1em 0;
position: fixed;
bottom: 0;
width: 100%;
background: white;
z-index: 99;
transform: translate(-50%, 0);
left: 50%;
}

#frm-publishing {
margin-left: auto;
}

#frm_top_bar > .frm-full-close:last-child {
margin-left: 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add responsive navigation bar styles for mobile view

The changes add styles for a fixed navigation bar at the bottom of the screen on mobile devices. This improves mobile usability but there are a few considerations:

  1. The fixed positioning with transform: translate(-50%, 0) and left: 50% could be simplified. Consider using:
-  transform: translate(-50%, 0);
-  left: 50%;
+  left: 0;
+  right: 0;
  1. The z-index of 99 may need to be higher to ensure the navigation stays above all content. Consider:
-  z-index: 99;
+  z-index: 999;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#frm_top_bar ul.frm_form_nav {
padding: 1em 0;
position: fixed;
bottom: 0;
width: 100%;
background: white;
z-index: 99;
transform: translate(-50%, 0);
left: 50%;
}
#frm-publishing {
margin-left: auto;
}
#frm_top_bar > .frm-full-close:last-child {
margin-left: 0;
}
#frm_top_bar ul.frm_form_nav {
padding: 1em 0;
position: fixed;
bottom: 0;
width: 100%;
background: white;
z-index: 999;
left: 0;
right: 0;
}
#frm-publishing {
margin-left: auto;
}
#frm_top_bar > .frm-full-close:last-child {
margin-left: 0;
}

Comment on lines +8785 to +8787
#frm-publishing {
margin-left: auto;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Verify navigation bar background contrast

The white background may not provide enough contrast with the content below it. Consider adding a subtle box shadow to visually separate it:

   background: white;
+  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);

Error: No shell scripts or web queries found


🏁 Script executed:

#!/bin/bash
# Retrieve context around the #frm-publishing rule in css/frm_admin.css to check for background and box-shadow properties
rg -n -C 5 "#frm-publishing" css/frm_admin.css

Length of output: 1861


🏁 Script executed:

#!/bin/bash
# Searching for 'background: white' in the repository to determine if it's used in the navigation bar styles.
rg -n "background:\s*white" .

Length of output: 509

Navigation Bar Contrast Improvement: Add a Subtle Box-Shadow

  • The CSS in several files (e.g. in css/frm_admin.css at line 8779) applies a white background to elements in the navigation area.
  • The rule for #frm-publishing (lines 8785–8787) does not include any box-shadow property, which could help visually separate the navigation bar from underlying content.
  • Adding a subtle box-shadow such as
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    would enhance the contrast and improve visual separation.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
classes/views/frm-forms/edit.php (1)

8-21: LGTM! Good implementation with some suggested improvements.

The small device message container is well-structured and properly internationalized. Here are some suggested improvements:

  1. The "Go back" button should have a proper destination or use JavaScript event handler instead of "#"
  2. Add ARIA attributes to make the SVG icon accessible
  3. Consider including the minimum recommended screen size in the message

Apply these improvements:

-<svg width="32" height="49" viewBox="0 0 32 49" fill="none" xmlns="http://www.w3.org/2000/svg">
+<svg width="32" height="49" viewBox="0 0 32 49" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Mobile device icon">
-<a href="#" class="frm-button-primary"><?php esc_html_e( 'Go back', 'formidable' ); ?></a>
+<button type="button" onclick="window.history.back()" class="frm-button-primary"><?php esc_html_e( 'Go back', 'formidable' ); ?></button>
-<p><?php esc_html_e( 'For the best experience, we recommend using Formidable Forms on larger devices such as a desktop or tablet.', 'formidable' ); ?></p>
+<p><?php esc_html_e( 'For the best experience, we recommend using Formidable Forms on devices with screens larger than 475px, such as a desktop or tablet.', 'formidable' ); ?></p>
css/frm_admin.css (1)

8796-8802: Inconsistent margin handling in responsive layout

The margin reset for the last child element is inconsistent with the rest of the responsive styles.

Consider standardizing margin handling:

#frm_top_bar > .frm-full-close:last-child {
-  margin-left: 0;
+  margin: 0;
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1aeff87 and a970a64.

📒 Files selected for processing (2)
  • classes/views/frm-forms/edit.php (1 hunks)
  • css/frm_admin.css (4 hunks)
🔇 Additional comments (3)
css/frm_admin.css (3)

8623-8625: LGTM: Base class for small device message container

The base class .frm_small_device_message_container is properly defined with display: none as the default state.


8653-8661: Verify Bootstrap dropdown visibility

The code hides the Bootstrap dropdown and its tooltip on smaller screens. We should verify this doesn't break any critical functionality.

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Search for any references to #frm_bs_dropdown to ensure hiding it won't break functionality
rg -l "frm_bs_dropdown" --type html --type php --type js

Length of output: 152


Bootstrap Dropdown Visibility Verified

The #frm_bs_dropdown element is referenced in a few places (in a PHP helper, a header file, and the admin JavaScript), and its usage is consistent with responsive design adjustments. Hiding it on smaller screens does not appear to break any critical functionality.


8778-8795: 🛠️ Refactor suggestion

Responsive navigation bar styles need improvement

The navigation bar styles for mobile view have a few issues:

  1. The fixed positioning with transform: translate(-50%, 0) and left: 50% is unnecessarily complex.
  2. The z-index of 99 may be too low to ensure the navigation stays above all content.

Apply this diff to improve the mobile navigation styles:

#frm_top_bar ul.frm_form_nav {
  padding: 1em 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  z-index: 999;
-  transform: translate(-50%, 0);
-  left: 50%;
+  left: 0;
+  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

Likely invalid or redundant comment.

Comment on lines +9062 to 9104
.frm_small_device_message_container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
width: 100%;
height: 100%;
z-index: 100;
background: var(--primary-500);
}

.frm_small_device_message {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
width: 80%;
padding: 1rem;
background: #fff;
border: solid 1px #fff;
border-radius: var(--medium-radius);
}

.frm_small_device_message::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-78%, -65%);
width: 900px;
height: 900px;
background-color: #0D7DFC;
border-radius: 50%;
z-index: -1;
opacity: 0.3;
}

.frm_small_device_message > svg {
padding-bottom: 1rem;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Small device message container needs accessibility improvements

The small device message container has some accessibility concerns:

  1. The fixed positioning may trap keyboard focus
  2. Missing ARIA attributes for screen readers
  3. The background overlay lacks proper contrast ratio

Apply these improvements:

.frm_small_device_message_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: var(--primary-500);
+ role="dialog"
+ aria-modal="true"
+ aria-label="Device size warning"
}

.frm_small_device_message {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  padding: 1rem;
  background: #fff;
  border: solid 1px #fff;
  border-radius: var(--medium-radius);
+ color: var(--grey-900);
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

Committable suggestion skipped: line range outside the PR's diff.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
classes/controllers/FrmFormsController.php (1)

1898-1898: Consider conditional server-side rendering of the device message.

While the current implementation works, consider conditionally rendering the message based on device detection to avoid unnecessary DOM nodes on desktop devices. This would improve performance and reduce page weight.

-		self::include_device_too_small_message();
+		if ( wp_is_mobile() ) {
+			self::include_device_too_small_message();
+		}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1f9fcf0 and 58cc6f3.

📒 Files selected for processing (3)
  • classes/controllers/FrmFormsController.php (1 hunks)
  • classes/views/frm-forms/edit.php (0 hunks)
  • css/frm_admin.css (6 hunks)
💤 Files with no reviewable changes (1)
  • classes/views/frm-forms/edit.php
🚧 Files skipped from review as they are similar to previous changes (1)
  • css/frm_admin.css
🔇 Additional comments (1)
classes/controllers/FrmFormsController.php (1)

1869-1892: Well-structured implementation of the device message component!

The implementation follows best practices with:

  • Proper escaping of translations
  • Semantic HTML structure
  • Accessibility considerations with role="status"
  • Clear visual hierarchy in the UI components

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
css/frm_admin.css (1)

8787-8789: Improve publishing button positioning

-#frm-publishing {
-  margin-left: auto;
-}
+#frm-publishing {
+  margin-left: auto;
+  margin-right: var(--gap-sm);
+}

Add right margin for better spacing and alignment with other elements.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 57633d8 and b86f05e.

📒 Files selected for processing (3)
  • classes/controllers/FrmEntriesController.php (1 hunks)
  • classes/controllers/FrmStylesController.php (1 hunks)
  • css/frm_admin.css (6 hunks)
🔇 Additional comments (7)
classes/controllers/FrmStylesController.php (1)

863-863: LGTM! Verify message visibility logic.

The addition of the device message before action routing is well-placed. The message will be consistently available across all routes, with visibility likely controlled via CSS based on device size.

Let's verify the CSS breakpoints that control the message visibility:

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Search for CSS rules that control the visibility of the device message container
rg -A 5 "frm_small_device_message_container"

Length of output: 1692


Based on the output from the CSS search, the message container (frm_small_device_message_container) is styled in two different blocks. One rule hides the container (using display: none;), and another sets it to a flex container. This indicates that the visibility is controlled by CSS (likely via media queries or other context-specific rules) so that the message only appears on small devices as intended.

LGTM! The change in FrmStylesController.php correctly calls the method to include the device message, and CSS rules confirm that its visibility is appropriately managed. Please verify that the media query conditions correctly trigger the “display: flex” rule on small devices.

classes/controllers/FrmEntriesController.php (1)

113-113: LGTM! Verify the implementation of the device message.

The addition of the device size message aligns with the PR objectives for responsive styles.

Let's verify the implementation of the called method:

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Description: Check the implementation of include_device_too_small_message()

# Search for the method definition
ast-grep --pattern 'public static function include_device_too_small_message() {
  $$$
}'

# Search for other usages of this method
rg -A 5 'include_device_too_small_message'

Length of output: 2232


LGTM! The device message implementation is correctly integrated.

  • The method include_device_too_small_message() is implemented in classes/controllers/FrmFormsController.php and outputs the expected HTML (including the SVG icon) for a small device message.
  • The new call in FrmEntriesController.php (and similar usage in FrmStylesController.php) confirms consistent usage across the codebase.
css/frm_admin.css (5)

8623-8626: Add small device message container styles

The styles define a container for displaying messages on small devices.

The implementation follows best practices by:

  1. Using display: none by default
  2. Using semantic class names
  3. Keeping styles modular and reusable

8656-8659: Hide tooltip on smaller screens

Good practice to hide the tooltip when there isn't enough screen space to display it properly. The !important flag is justified here to ensure the tooltip stays hidden.


9060-9102: 🛠️ Refactor suggestion

Improve small device message container layout and accessibility

.frm_small_device_message_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: var(--primary-500);
+ role: "dialog";
+ aria-modal: "true";
+ aria-label: "Device size warning";
}

Add ARIA attributes to improve accessibility for screen readers.

Likely invalid or redundant comment.


8776-8793: 🛠️ Refactor suggestion

Refactor navigation bar styles for mobile view

The changes add styles for a fixed navigation bar at the bottom of the screen on mobile devices. The implementation can be improved for better maintainability and performance.

-#frm_top_bar ul.frm_form_nav {
-  padding: 1em 0;
-  position: fixed;
-  bottom: 0;
-  width: 100%;
-  background: white;
-  z-index: 99;
-  transform: translate(-50%, 0);
-  left: 50%;
-}
+#frm_top_bar ul.frm_form_nav {
+  padding: var(--gap-sm) 0;
+  position: fixed;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  width: 100%;
+  background: #fff;
+  z-index: 99;
+}

The changes:

  1. Use CSS variables for consistent padding
  2. Remove transform/left positioning in favor of left/right: 0
  3. Use #fff instead of white for consistency

Likely invalid or redundant comment.


8794-8800: Verify dropdown button display properties

The dropdown button display property is being modified. Need to verify this won't affect other uses of the dropdown button in the codebase.

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Check if the dropdown button is used elsewhere in the codebase
rg -l "frm_bs_dropdown" .

Length of output: 176


We’ve confirmed that the #frm_bs_dropdown identifier is referenced in several files:

  • ./classes/helpers/FrmFormsHelper.php
  • ./classes/views/applications/header.php
  • ./css/admin/applications.css
  • ./css/frm_admin.css
  • ./js/formidable_admin.js

Before finalizing the verification, we need to review the context in which #frm_bs_dropdown is used in these files to ensure that forcing a display: block (and similarly for .frm_bstooltip) in frm_admin.css doesn’t unintentionally override styles needed elsewhere (for example, in the admin area versus public application views).

Let's inspect the surrounding context for each occurrence. Please run the following shell script to show several lines around each match:



Once we review the context from these files, we can determine whether the forced display: block in css/frm_admin.css is appropriate and isolated (for example, if it only applies to the admin interface) or if it might conflict with other areas of the codebase that rely on different behavior for the dropdown.


🏁 Script executed:

#!/bin/bash
# Display occurrences with context for "#frm_bs_dropdown" in all related files
FILES=(
    "css/admin/applications.css"
    "css/frm_admin.css"
    "classes/helpers/FrmFormsHelper.php"
    "classes/views/applications/header.php"
    "js/formidable_admin.js"
)
for file in "${FILES[@]}"; do
    echo "=== $file ==="
    rg -C 3 "#frm_bs_dropdown" "$file" || echo "No matches found"
    echo ""
done

Length of output: 2618


Review Confirmed: Dropdown Button Display Styles Are Intentional

After inspecting all occurrences:

  • In css/frm_admin.css, the dropdown button is initially set with conflicting tooltip visibility (first hidden then forced to display). The final state is ensured by the later display: block !important rules.
  • In the admin-specific files (css/frm_admin.css, js/formidable_admin.js, etc.), the styles are intended for the admin interface.
  • Other files (like css/admin/applications.css) reference the element in contexts that do not conflict with this behavior.

The forced display: block in css/frm_admin.css appears to be a deliberate override for the admin interface and does not adversely affect other areas.

@AbdiTolesa AbdiTolesa changed the title Add responsive styles for different breaking points Make admin nav responsive Feb 6, 2025
@Crabcyborg Crabcyborg added this to the 6.19 milestone Feb 10, 2025
*/
public static function include_device_too_small_message() {
?>
<div class="frm_small_device_message_container">
Copy link
Contributor

Choose a reason for hiding this comment

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

@AbdiTolesa Could we use an id instead? We only expect to have this element on a page once, right? This should make it easier to style as well. It would be nice to avoid stuff like :not(.frm_small_device_message_container) when possible. It makes maintenance difficult, and looks bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants