Skip to content

Commit

Permalink
Layout tweaks to make github link not cover up information and hopefu…
Browse files Browse the repository at this point in the history
…lly not be bigger than the viewport on mobile
  • Loading branch information
MaxWilson committed Nov 27, 2023
1 parent 62c8626 commit 443926c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions main.sass
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ ul
font-weight: bold
@media speech
display: none
.srcLink
max-width: 6rem
position: absolute
right: 3px
background-color: white

.srcLink
max-width: 6rem
float: right
background-color: white

.horizontalStack
display: flex
Expand Down
7 changes: 0 additions & 7 deletions src/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ let Router() =
React.router [
router.onUrlChanged updateUrl
router.children [
class' "header" Html.div [
classP' "srcLink" Html.a [
prop.href "https://github.com/MaxWilson/ShiningSword/"
prop.children [Html.img [prop.ariaLabel "GitHub"; prop.src "img/GitHub_Logo.png"]]
prop.target "_blank"
]
]
let lookup = [
"priestSpells", "Priest Spells by Sphere", (fun () -> UI.PriestSpellsView.View())
]
Expand Down
6 changes: 6 additions & 0 deletions src/UI/CommonUI.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ let divWrap (className: string) element =
let normalizeCRLF (str: string) = str.Replace("\r\n", "\n").Replace("\r", "\n")
exception UserFacingException of msg:string
let informUserOfError msg = UserFacingException msg |> raise
let srcLink =
classP' "srcLink" Html.a [
prop.href "https://github.com/MaxWilson/ShiningSword/"
prop.children [Html.img [prop.ariaLabel "GitHub"; prop.src "img/GitHub_Logo.png"]]
prop.target "_blank"
]

type React =
static member inline useElmishSimple (init: _ -> 'model) (update: 'msg -> 'model -> 'model) =
Expand Down
3 changes: 2 additions & 1 deletion src/UI/Components/PriestSpellsView.fs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ let View() =
]
]
]
Html.div [
class' "scrollable" Html.div [
srcLink
Html.h2 "Gods"
Html.ul [
for deity in filteredDeities filter model do
Expand Down

0 comments on commit 443926c

Please sign in to comment.