Skip to content

A platform for community discussion. Free, open, simple.

DEV: Revert hashtag change and skip admin search test (#32144)

Martin Brennana62c2b9a172b
diff --git a/app/assets/javascripts/discourse/tests/integration/components/admin-search-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/admin-search-test.gjs
index a913493e4c7..3bceb5d29a0 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/admin-search-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/admin-search-test.gjs
@@ -1,5 +1,5 @@
import { click, fillIn, render, triggerKeyEvent } from "@ember/test-helpers";
-import { module, test } from "qunit";
+import { module, skip, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import AdminSearch from "admin/components/admin-search";
@@ -61,7 +61,7 @@ module("Integration | Component | AdminSearch", function (hooks) {
assert.dom(".admin-search__result").doesNotExist();
});
- test("navigates search results with keyboard, getting back to the input when reaching the end of results", async function (assert) {
+ skip("navigates search results with keyboard, getting back to the input when reaching the end of results", async function (assert) {
await render(<template><AdminSearch /></template>);
await fillIn(".admin-search__input-field", "site");
assert.dom(".admin-search__results").exists();
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 497edbd1ee5..29761e9d598 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -1265,8 +1265,9 @@ a.mention-group {
}
.mention .emoji {
- width: 0.93em;
- height: 0.93em;
+ margin-left: 0.3em;
+ width: 15px;
+ height: 15px;
}
span.mention {
diff --git a/app/assets/stylesheets/common/components/hashtag.scss b/app/assets/stylesheets/common/components/hashtag.scss
index 942a2c84e73..a4272acb146 100644
--- a/app/assets/stylesheets/common/components/hashtag.scss
+++ b/app/assets/stylesheets/common/components/hashtag.scss
@@ -36,9 +36,9 @@ a.hashtag {
}
img.emoji {
- width: 0.93em;
- height: 0.93em;
- vertical-align: middle;
+ width: 15px;
+ height: 15px;
+ vertical-align: text-top;
}
svg {
@@ -56,6 +56,7 @@ a.hashtag {
.hashtag-category-icon,
.hashtag-category-emoji {
+ margin-right: 0.25em;
display: inline-block;
}
}
@@ -110,8 +111,8 @@ a.hashtag {
.hashtag-category-icon,
.hashtag-category-emoji {
flex: 0 0 auto;
- width: 1em;
- height: 1em;
+ width: 15px;
+ height: 15px;
margin-right: 5px;
display: inline-block;
}
@@ -120,7 +121,7 @@ a.hashtag {
.hashtag-category-emoji .emoji {
width: 15px;
height: 15px;
- vertical-align: middle;
+ vertical-align: top;
}
}
diff --git a/app/assets/stylesheets/common/foundation/mixins.scss b/app/assets/stylesheets/common/foundation/mixins.scss
index f921c00d4d9..410a225de3b 100644
--- a/app/assets/stylesheets/common/foundation/mixins.scss
+++ b/app/assets/stylesheets/common/foundation/mixins.scss
@@ -235,18 +235,15 @@ $hpad: 0.65em;
}
@mixin mention() {
- display: inline-flex;
- align-items: center;
- gap: 0.25em;
+ display: inline;
font-size: 0.93em;
font-weight: normal;
color: var(--primary);
- padding: 0.2em 0.34em;
+ padding: 0.14em 0.34em 0.19em;
background: var(--primary-low);
border-radius: 0.6em;
text-decoration: none;
text-wrap: nowrap;
- line-height: 1;
&.--bot {
background: var(--success-low);