Make alt colors enabled by default for logged in users (#1483)
* Make alt colors enabled by default for logged in users * Better background color for sukebei's h-user when focused * Fix border not being shown * Fix display of rules on Internet Explorer
Cette révision appartient à :
Parent
4f33ae5f6e
révision
26932b904a
3 fichiers modifiés avec 4 ajouts et 3 suppressions
|
@ -205,7 +205,7 @@ td.tr-le, .error-text {
|
|||
}
|
||||
|
||||
.sukebei .header .h-user button:focus {
|
||||
background-color: rgba(150, 100, 255, 0.16);
|
||||
background-color: rgba(223, 116, 230, 0.16);
|
||||
}
|
||||
|
||||
.sukebei .header .h-user .user-menu {
|
||||
|
|
|
@ -1620,7 +1620,7 @@ input.nav-btn {
|
|||
}
|
||||
|
||||
.rules-drop {
|
||||
display: flex;
|
||||
display: inline-block;
|
||||
user-select: none;
|
||||
vertical-align: bottom;
|
||||
width: 435px;
|
||||
|
|
|
@ -184,7 +184,8 @@ func GetThemeFromRequest(c *gin.Context) string {
|
|||
func GetAltColorsFromRequest(c *gin.Context) bool {
|
||||
user, _ := getCurrentUser(c)
|
||||
if user.ID > 0 {
|
||||
return user.AltColors == "true"
|
||||
return user.AltColors != "false"
|
||||
//Doing this in order to make it return true should the field be empty
|
||||
}
|
||||
cookie, err := c.Cookie("altColors")
|
||||
if err == nil {
|
||||
|
|
Référencer dans un nouveau ticket