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

UI: Add search button to search bar #4706

Merged
merged 4 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion assets/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,14 @@ div.thumbnail > .bottom-right-overlay {
display: inline;
}

.searchbar .pure-form fieldset { padding: 0; }
.searchbar .pure-form {
display: flex;
}

.searchbar .pure-form fieldset {
padding: 0;
flex: 1;
}

.searchbar input[type="search"] {
width: 100%;
Expand Down Expand Up @@ -310,6 +317,16 @@ input[type="search"]::-webkit-search-cancel-button {
background-size: 14px;
}

.searchbar #searchbutton {
border: none;
background: none;
margin-top: 0;
}

.searchbar #searchbutton:hover {
color: rgb(0, 182, 240);
}

.user-field {
display: flex;
flex-direction: row;
Expand Down
3 changes: 3 additions & 0 deletions src/invidious/views/components/search_box.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
title="<%= translate(locale, "search") %>"
value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
</fieldset>
<button type="submit" id="searchbutton" aria-label="<%= translate(locale, "search") %>">
<i class="icon ion-ios-search"></i>
</button>
</form>
Loading