8000 style(search): harmonize example link styling between search tabs · Issue #65 · halbritter-lab/nc-scorer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
style(search): harmonize example link styling between search tabs #65
Open
@berntpopp

Description

@berntpopp

Description:

The presentation style for the "Examples to try" links differs between the "Scoring Search" tab (ScoringSearch.vue) and the "Variant Search" tab (VariantSearch.vue) on the main search page.

  • Scoring Search: Uses a more structured grid layout (example-grid) with icons, bold titles (example-title), and smaller detail text (example-details), including a highlighted example. Links are router-link components pointing to the ScoringView.
  • Variant Search: Uses simple paragraph tags (<p>) with basic router-link components pointing to the VariantView. The styling is less distinct.

This inconsistency can be slightly jarring for users switching between tabs.

Expected Behavior:

The "Examples to try" section should have a consistent visual appearance and structure across all relevant search tabs where examples are provided. The more detailed and visually appealing style used in ScoringSearch.vue should ideally be adopted for other tabs as well.

Tasks:

  1. Analyze ScoringSearch.vue: Examine the CSS classes (example-text, example-grid, example-link, example-content, example-title, example-details, example-highlight) and the HTML structure (nested divs, icons) used for the example links.
  2. Refactor VariantSearch.vue Template:
    • Replace the current <p> tags containing the example router-links.
    • Implement the same HTML structure (divs with classes like example-grid, example-link, example-content, etc.) as used in ScoringSearch.vue.
    • Add appropriate icons (e.g., mdi-dna).
    • Apply the corresponding CSS classes to achieve the desired styling.
  3. Refactor GeneSearch.vue Template (If Applicable):
    • Check if GeneSearch.vue includes example links. If it does, apply the same refactoring as in Step 2. If not, this step can be skipped.
  4. Consolidate Styles (Optional but Recommended):
    • Consider extracting the common CSS rules for example links (.example-grid, .example-link, etc.) into a shared CSS file or a global style block to avoid duplication, if not already done.
  5. Verify: Ensure the example links look consistent across all relevant search tabs in both light and dark themes.

Motivation:

Creates a more consistent and polished user interface across the different search modes, improving the overall user experience and visual appeal.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0