נושא Horizon

Are there any thoughts about making Horizon full width? I find that it feels a bit constrained in the middle (corset?), and going fully would relax it nicely.

4 לייקים

No, not planning on doing so. We are maintaining a limited width, which corresponds to optimal reading length.

2 לייקים

Hi, I’ve tried to preview the theme, but this is all I’m seeing:

Am I doing something wrong?

לייק 1

I just tested (mobile though) and it works fine for me. Is there anything in the console? Or can you try a different browser to check?

לייק 1

Thanks @chapoi! My console:

לייק 1

Okay yeah I can definitely repro. I think it’s because Horizon has been moved to core probably. Will need to figure out how to fix the preview link, if at all possible. (Update: link in the OP is updated now)

That being said, you can just preview it here on Meta by switching to the theme

2 לייקים

Thanks a lot, it works now!

לייק 1

Dashboard: Button text invisible by default + layout misalignment in “Top Referred Topics” & “Trending Search Terms”

Hi

I’m using the Horizon theme and have identified several UI issues in the Admin Dashboard, specifically in the Top Referred Topics and Trending Search Terms sections.

:magnifying_glass_tilted_left: Issue 1: Button text is invisible until hover

Location: Buttons in both sections (e.g., “View topic”, “See search term”)

Expected behavior: Button label should be visible at all times (normal state).

:straight_ruler: Issue 2: Column width imbalance & text wrapping

Location: Table columns in both widgets

Observed layout:

Topic / Terms column: too narrow → long titles wrap vertically (e.g., multi-line text inside a single row).

Numeric columns (Views, Clicks, Searches, etc.): overly wide → excessive whitespace.

Additional issue: Numeric values are right-aligned (default for numbers), but in RTL contexts (like Persian/Arabic), this creates visual inconsistency. For better UX in RTL locales, numeric columns should remain right-aligned, but topic/terms columns must be left-aligned — currently they appear right-aligned in RTL, causing misalignment.

Thanks for your work on Horizon theme.

לייק 1

Thanks for these reports, will be fixed!

For next time though: some screenshots are very helpful to quicker identify what it’s about than text.

לייק 1

Mobile Ad Container Overflow in House Ads – RTL/LTR Layout Mismatch

Hi

I’m using the Horizon theme with the official House Ads plugin, and I’ve created a custom component to style ads using CSS variables and layout rules compatible with Discourse’s design system.

:mobile_phone: Issue: Ad container overflows viewport on mobile (both LTR & RTL)

  • Theme: Horizon (not reproducible in default or other themes like Material, etc.)
  • Plugin: House Ads + custom component
  • Device: Mobile
  • Behavior:
    • When site language = English (LTR) → left edge of .ad-container is cut off (overflows left).
    • When site language = Persian/Arabic (RTL) → right edge is cut off (overflows right).
  • Expected: The ad card should be fully contained within the viewport, centered or aligned with post content width.

my css code:

Summary
:root {
  /* Core colors */
  --ad-bg: var(--secondary);
  --ad-border: var(--highlight);
  --ad-text: var(--primary);

  /* Label */
  --ad-label-bg: var(--highlight);
  --ad-label-text: var(--danger);
}


.house-creative {
  margin-left: 0 !important;
}


.house-creative a.between-posts-ad {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  font-family: inherit;
}

/* ===============================
   Card Container
   =============================== */

.house-creative .ad-container {
    direction: rtl !important;
    text-align: center !important;
margin-bottom: 20px;
      padding: 10px 5px;
     max-width: calc(#{$topic-avatar-width} + #{$topic-body-width} + (#{$topic-body-width-padding} * 2));  background-color: var(--ad-bg);
  border: 2px solid var(--ad-border);
  border-radius: 10px;

  box-sizing: border-box;
  line-height: 1.7;

  color: var(--ad-text);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.house-creative a.between-posts-ad:hover .ad-container {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.house-creative .ad-label {
    display: inline-block;       
    text-align: center;   
    margin-bottom: 6px;
     padding: 4px 12px;

  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;

  background-color: var(--ad-label-bg);
  color: var(--ad-label-text);

  border-radius: 999px;
}

.house-creative .ad-container .ad-text {
  margin: 0;

  font-size: 1rem;
  line-height: 1.9;
  color: var(--ad-text);

  direction: rtl ;
  text-align: center !important ;
  unicode-bidi: isolate;
}


@media (max-width: 480px) {
  .house-creative .ad-container {
direction: rtl !important;
text-align: center !important; 
padding: 16px 12px; 
width: 100%;
max-width: 100%;

  }
}

Horizon is not compatible with all components and plugins (yet).

לייק 1