Skip to content

Commit

Permalink
Fix CSS formatting error, improve place display in listing
Browse files Browse the repository at this point in the history
  • Loading branch information
ut committed Feb 27, 2024
1 parent 3528e4d commit 7c6e555
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 25 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/1_basics.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ a.button {
}
a.button.small {
margin: 0 0.25rem 0.25rem;
padding: 0.45em 0.7em;
white-space: nowrap;
}
.close-button.small {
right: 0.66rem;
Expand Down Expand Up @@ -323,6 +325,7 @@ body .top-bar.action-bar {
display: inline;
font-weight: bold;
font-size: 14px;

opacity: 1;
transition: 3s all;
svg {
Expand Down
34 changes: 18 additions & 16 deletions app/assets/stylesheets/6_timeline.css.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@

%td.nobr {
white-space: nowrap;

}
.time
{
border-top: 1px dashed #555;
border-bottom: 1px dashed #555;
line-height: 0;
padding: 0;
width: 8px;
display: inline-block;
color: transparent;
margin-right: 0;
#timeline {
.time
{
border-top: 1px dashed #555;
border-bottom: 1px dashed #555;
line-height: 0;
padding: 0;
width: 8px;
display: inline-block;
color: transparent;
margin-right: 0;
}
.time.time-first,
.time.time-on {
border-top: 4px solid #c6c600;
border-bottom: 4px solid #c6c600;
}
}
.time.time-first,
.time.time-on {
border-top: 4px solid #c6c600;
border-bottom: 4px solid #c6c600;
}
23 changes: 14 additions & 9 deletions app/views/places/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
%p
 
%table
%table#timeline
%thead
%tr
%th
Expand Down Expand Up @@ -160,17 +160,22 @@
%i.fi-star.fi-21{title: 'Feature'}
- if place.subtitle.present?
%p= place.subtitle
%p
= link_to place.link do
= place.link
%p
= place.location
%br
= place.address
%br
= place.zip
= place.city
- if place.address.present?
- if place.zip.present? && place.city.present?
#{place.address}, #{place.zip} #{place.city}
- elsif place.city.present?
#{place.address}, #{place.zip}
- else
#{place.address}
%p
= link_to place.link, {target: '_blank'} do
%i.fi-link.fi-21
Weblink
- if place.annotations && place.annotations.count > 0
%p
= link_to map_layer_place_path(place.layer.map,place.layer,place) do
Expand Down Expand Up @@ -219,7 +224,7 @@
Video
- if admin? && current_user.group.title == 'Admins'
%br
= link_to clone_map_layer_place_path(place.layer.map,place.layer,place), :class => 'button small secondary', :title=>'Make a copy of this place and change it' do
= link_to clone_map_layer_place_path(place.layer.map,place.layer,place), :class => 'button small secondary', :title=>'Make a copy of this place and edit' do
%i.fi-page-copy.fi-21
Copy
%br
Expand Down

0 comments on commit 7c6e555

Please sign in to comment.