Skip to content

Commit

Permalink
Fix CSS issues on search widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Piatek committed Aug 5, 2022
1 parent 1e6cf40 commit 6e99720
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/MeganavSearchPanel/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= render(AblyUi::Core::MeganavSearchAutocomplete.new) %>
</div>

<button type="submit" class="ui-btn-secondary ml-8 sm:ml-16 md:ml-24 xl:ml-32">
<button type="submit" class="ui-btn-secondary flex-shrink-0 ml-8 sm:ml-16 md:ml-24 xl:ml-32">
Search
</button>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion src/core/MeganavSearchPanel/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const MeganavSearchPanel = ({ absUrl }) => {
<MeganavSearchAutocomplete />
</div>

<button type="submit" className="ui-btn-secondary ml-8 sm:ml-16 md:ml-24 xl:ml-32">
<button type="submit" className="ui-btn-secondary flex-shrink-0 ml-8 sm:ml-16 md:ml-24 xl:ml-32">
Search
</button>
</form>
Expand Down
4 changes: 2 additions & 2 deletions src/core/MeganavSearchSuggestions/component.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p class="ui-text-overline2 text-cool-black py-12">Popular pages</p>

<div class="flex justify-between items-center overflow-x-scroll md:overflow-auto">
<ul class="flex">
<div class="flex justify-between items-center overflow-hidden">
<ul class="flex transition-transform">
<li class="py-12 pr-8 flex-shrink-0">
<%= link_to 'How does Ably work?', abs_url("/docs/how-ably-works"), class: "ui-text-p2 hover:text-gui-hover active:text-gui-active focus:text-gui-focus" %>
</li>
Expand Down

0 comments on commit 6e99720

Please sign in to comment.