From 72beea805f5a2173ce23b82214995e9a3d859434 Mon Sep 17 00:00:00 2001 From: tmont Date: Fri, 4 Mar 2011 09:54:51 +0000 Subject: [PATCH] * fixed bad browse route * fixed some chrome-specific layout issues --- Src/VideoGameQuotes.Web/Global.asax.cs | 3 ++- Src/VideoGameQuotes.Web/media/css/vgquotes.css | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Src/VideoGameQuotes.Web/Global.asax.cs b/Src/VideoGameQuotes.Web/Global.asax.cs index f3bdd8b..52cee83 100644 --- a/Src/VideoGameQuotes.Web/Global.asax.cs +++ b/Src/VideoGameQuotes.Web/Global.asax.cs @@ -56,7 +56,7 @@ namespace VideoGameQuotes.Web { //bullshit route so that RenderAction works routes.MapSmartRoute("mainmenu", "home/mainmenu", new { controller = "Home", action = "MainMenu" }); routes.MapSmartRoute("quote-of-the-day", "quote/quoteoftheday", new { controller = "Quote", action = "QuoteOfTheDay" }); - routes.MapSmartRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|random|vote|flag|browse" }); + routes.MapSmartRoute("crud-default", "{controller}/{action}", null, new { controller = "system|publisher|game|category", action = "create|edit|delete" }); routes.MapSmartRoute("admin-default", "admin", new { controller = "Admin", action = "Index" }); routes.MapSmartRoute("admin", "admin/{action}", new { controller = "Admin", action = "Index" }, new { action = "users|create|flags|password" }); @@ -72,6 +72,7 @@ namespace VideoGameQuotes.Web { routes.MapSmartRoute("browse", "browse/{*qualifiers}", new { controller = "Quote", action = "Browse" }); routes.MapSmartRoute("search", "search/{*searchQuery}", new { controller = "Quote", action = "Search" }); + routes.MapSmartRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|random|vote|flag|browse" }); //these routes don't work with constraints in mono...? routes.MapSmartRoute("quote-edit", "quote/edit/{id}", new { controller = "Quote", action = "Edit" }); diff --git a/Src/VideoGameQuotes.Web/media/css/vgquotes.css b/Src/VideoGameQuotes.Web/media/css/vgquotes.css index 7a3c7d8..f47fdb6 100644 --- a/Src/VideoGameQuotes.Web/media/css/vgquotes.css +++ b/Src/VideoGameQuotes.Web/media/css/vgquotes.css @@ -176,6 +176,7 @@ a.external { } .searchbox { float: right !important; + width: 226px; /* chrome needs this or it creates a second line */ } .searchbox input[type="text"] { height: 15px; @@ -265,7 +266,9 @@ a.external { background-repeat: no-repeat; } .add-icon, .edit-icon, .loading-icon, .delete-icon, .submit-icon, .cancel-icon, #search-submit, .quote-permalink, .quote-flag-icon, .error-icon { - padding-left: 16px; + display: inline-block; + width: 16px; + height: 16px; margin-left: 2px; } .error-icon { @@ -304,6 +307,10 @@ a.external { text-decoration: none; font-weight: bold; } +.button-link span:first-child /* laziness lol */ { + position: relative; + top: 3px; +} #browse-default-menu li { margin-bottom: 2px;