diff options
| author | thansk <53181514+thansk@users.noreply.github.com> | 2024-05-19 11:46:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-19 11:46:55 +0000 |
| commit | 9cd2e93a2ee8f2f0f570bcb8fbe584f5c502a34e (patch) | |
| tree | c99d918eb770909719e8688bdff0e4aaae780bbd | |
| parent | eda7444ca46dbc3941205316baba8030fe0b2989 (diff) | |
| download | invidious-9cd2e93a2ee8f2f0f570bcb8fbe584f5c502a34e.tar.gz invidious-9cd2e93a2ee8f2f0f570bcb8fbe584f5c502a34e.tar.bz2 invidious-9cd2e93a2ee8f2f0f570bcb8fbe584f5c502a34e.zip | |
feat: allow submitting search with mouse
| -rw-r--r-- | assets/css/default.css | 19 | ||||
| -rw-r--r-- | src/invidious/views/components/search_box.ecr | 1 |
2 files changed, 19 insertions, 1 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index a47762ec..d86ec7bc 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -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%; @@ -310,6 +317,16 @@ input[type="search"]::-webkit-search-cancel-button { background-size: 14px; } +.searchbar #searchbutton { + border: 0; + background: none; + text-transform: uppercase; +} + +.searchbar #searchbutton:hover { + color: rgb(0, 182, 240); +} + .user-field { display: flex; flex-direction: row; diff --git a/src/invidious/views/components/search_box.ecr b/src/invidious/views/components/search_box.ecr index a03785d1..c5488255 100644 --- a/src/invidious/views/components/search_box.ecr +++ b/src/invidious/views/components/search_box.ecr @@ -6,4 +6,5 @@ title="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>"> </fieldset> + <button type="submit" id="searchbutton">Search</button> </form> |
