Zed 2 năm trước cách đây
mục cha
commit
e0d9dd0f9c
3 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 2 2
      src/auth.nim
  2. 1 1
      src/sass/profile/card.scss
  3. 2 2
      src/types.nim

+ 2 - 2
src/auth.nim

@@ -37,7 +37,7 @@ proc hasExpired(account: GuestAccount): bool =
   let
     created = snowflakeToEpoch(account.id)
     now = epochTime().int64
-    daysOld = int(now - created) div (24 * 60 * 60)
+    daysOld = int(now - created) div dayInSeconds
   return daysOld > 30
 
 proc getAccountPoolHealth*(): JsonNode =
@@ -45,7 +45,7 @@ proc getAccountPoolHealth*(): JsonNode =
 
   var
     totalReqs = 0
-    limited: PackedSet[BiggestInt]
+    limited: PackedSet[int64]
     reqsPerApi: Table[string, int]
     oldest = now.int64
     newest = 0'i64

+ 1 - 1
src/sass/profile/card.scss

@@ -115,7 +115,7 @@
     }
 
     .profile-card-tabs-name {
-        @include breakable;
+        flex-shrink: 100;
     }
 
     .profile-card-avatar {

+ 2 - 2
src/types.nim

@@ -36,7 +36,7 @@ type
     limitedAt*: int
 
   GuestAccount* = ref object
-    id*: BiggestInt
+    id*: int64
     oauthToken*: string
     oauthSecret*: string
     pending*: int
@@ -164,7 +164,7 @@ type
     newsletterPublication = "newsletter_publication"
     hidden
     unknown
-    
+
   Card* = object
     kind*: CardKind
     url*: string