Skip to content

Commit 62a2a8a

Browse files
committed
Move results before left anchors in tab focus order
1 parent f3d8bfe commit 62a2a8a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

html/hoogle.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body {
1818

1919
#body {
2020
flex-grow: 1;
21+
position: relative;
2122
}
2223

2324
a img {
@@ -127,6 +128,9 @@ form {
127128
padding: 0px;
128129
margin-left: 10px;
129130
overflow: hidden;
131+
position: absolute;
132+
top: 0;
133+
left: 0;
130134
}
131135

132136
#left li {

src/Action/Server.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ dedupeTake n key = f [] Map.empty
189189
showResults :: Bool -> Bool -> Maybe FilePath -> [(String, String)] -> [Query] -> [[Target]] -> Markup
190190
showResults local links haddock args query results = do
191191
H.h1 $ renderQuery query
192-
H.ul ! H.id "left" $ do
193-
H.li $ H.b "Packages"
194-
mconcat [H.li $ f cat val | (cat,val) <- itemCategories $ concat results, QueryScope True cat val `notElem` query]
195192
when (null results) $ H.p "No results found"
196193
forM_ results $ \is@(Target{..}:_) -> do
197194
H.div ! H.class_ "result" $ do
@@ -203,6 +200,10 @@ showResults local links haddock args query results = do
203200
H.div ! H.class_ "links" $ H.a ! H.href (H.stringValue link) $ "Uses"
204201
H.div ! H.class_ "from" $ showFroms local haddock is
205202
H.div ! H.class_ "doc newline shut" $ H.preEscapedString targetDocs
203+
H.ul ! H.id "left" $ do
204+
H.li $ H.b "Packages"
205+
mconcat [H.li $ f cat val | (cat,val) <- itemCategories $ concat results, QueryScope True cat val `notElem` query]
206+
206207
where
207208
useLink :: [Target] -> Maybe String
208209
useLink [t] | isNothing $ targetPackage t =

0 commit comments

Comments
 (0)