Permalink
Browse files

Fix Default Map Location label width in admin.

Don;t set fixed width as will be different for translations.
  • Loading branch information...
benhuson committed Jan 13, 2014
1 parent 4133759 commit 6aff92017b51ce75f262671aed8c06b05459875e
Showing with 15 additions and 3 deletions.
  1. +5 −3 admin/settings.php
  2. +10 −0 css/wp-geo.css
View
@@ -154,9 +154,11 @@ function show_post_map_field() {
*/
function default_map_location_field() {
$options = get_option( 'wp_geo_options' );
- echo __( 'When creating a new post, the map will default to focussing on this area for you to position a marker.', 'wp-geo' ) . '<br />';
- echo '<label for="default_map_latitude" style="width:70px; display:inline-block;">' . __( 'Latitude', 'wp-geo' ) . '</label> <input name="wp_geo_options[default_map_latitude]" type="text" id="default_map_latitude" value="' . $options['default_map_latitude'] . '" size="25" /><br />';
- echo '<label for="default_map_longitude" style="width:70px; display:inline-block;">' . __( 'Longitude', 'wp-geo' ) . '</label> <input name="wp_geo_options[default_map_longitude]" type="text" id="default_map_longitude" value="' . $options['default_map_longitude'] . '" size="25" />';
+ echo '<p>' . __( 'When creating a new post, the map will default to focussing on this area for you to position a marker.', 'wp-geo' ) . '</p>';
+ echo '<table class="wpgeo-inner-admin-table">';
+ echo '<tr><th><label for="default_map_latitude">' . __( 'Latitude', 'wp-geo' ) . '</label></th><td><input name="wp_geo_options[default_map_latitude]" type="text" id="default_map_latitude" value="' . $options['default_map_latitude'] . '" size="25" /></td></tr>';
+ echo '<tr><th><label for="default_map_longitude">' . __( 'Longitude', 'wp-geo' ) . '</label></th><td><input name="wp_geo_options[default_map_longitude]" type="text" id="default_map_longitude" value="' . $options['default_map_longitude'] . '" size="25" /></td></tr>';
+ echo '</table>';
}
/**
View
@@ -82,6 +82,16 @@ div.tooltip {
-moz-border-radius: 4px;
border-radius: 4px;
}
+.wpgeo-inner-admin-table th {
+ font-weight: normal;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ width: auto;
+}
+.wpgeo-inner-admin-table td {
+ padding-top: 0px;
+ padding-bottom: 0px;
+}
/**
* Data Styles

0 comments on commit 6aff920

Please sign in to comment.