Skip to content

Commit

Permalink
Text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
swrobel committed Jan 15, 2018
1 parent 46db04e commit 6e18e6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ nav {

#forecast-table {
th {
padding-bottom: 0;
border-bottom: 0;
vertical-align: baseline;

Expand All @@ -21,6 +22,7 @@ nav {

img {
height: 30px;
vertical-align: text-bottom;
}
}

Expand All @@ -39,7 +41,6 @@ nav {
margin-left: 10px;
color: $headings-color;
font-size: 28px;
vertical-align: middle;
font-weight: normal;
}

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def map_link(target)
end

def forecast_link(image_file, service, target, icon_label = nil)
link_to target, target: service, title: "#{service} Forecast Page" do
link_to target, target: service, title: "#{service} Forecast Page", class: 'text-dark' do
span_tag = tag.span(icon_label, class: 'forecast-icon-label') if icon_label
image_tag(image_file, alt: "#{service} Logo") + span_tag
end
Expand Down
2 changes: 1 addition & 1 deletion lib/api_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module ApiMethods
def api_get(url)
response = JSON.parse(open(url, "User-Agent" => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7').read, object_class: OpenStruct)
response = JSON.parse(open(url, 'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7').read, object_class: OpenStruct)
request = ApiRequest.create(request: url, response: response, success: true)
return OpenStruct.new(request: request, response: response)
rescue OpenURI::HTTPError => e
Expand Down

0 comments on commit 6e18e6c

Please sign in to comment.