diff --git a/RxCode/Resources/Localizable.xcstrings b/RxCode/Resources/Localizable.xcstrings index ec48181..26e523f 100644 --- a/RxCode/Resources/Localizable.xcstrings +++ b/RxCode/Resources/Localizable.xcstrings @@ -1597,6 +1597,7 @@ } }, "7-day only" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -10497,6 +10498,7 @@ } }, "Filter" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -11763,6 +11765,7 @@ } }, "Hover" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -13042,6 +13045,7 @@ } }, "Line" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -16866,6 +16870,7 @@ } }, "One provider's limit. Its height is the share of that limit used at that moment; it drops when the limit resets." : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -18073,6 +18078,7 @@ } }, "Plans without a separate 5-hour limit show only their 7-day line." : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -18105,6 +18111,7 @@ } }, "Point at the chart to read every provider's usage at that time." : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -26012,6 +26019,7 @@ } }, "Use the filter button to hide providers or limits. Your choice is remembered." : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -27239,4 +27247,4 @@ } }, "version" : "1.1" -} +} \ No newline at end of file diff --git a/RxCode/Views/Sidebar/RateLimitStatsPopovers.swift b/RxCode/Views/Sidebar/RateLimitStatsPopovers.swift index 8a44381..74d00c4 100644 --- a/RxCode/Views/Sidebar/RateLimitStatsPopovers.swift +++ b/RxCode/Views/Sidebar/RateLimitStatsPopovers.swift @@ -233,12 +233,6 @@ struct RateLimitHistoryPopover: View { } else { chart legend - RateLimitGlossary(entries: [ - .init(term: "Line", detail: "One provider's limit. Its height is the share of that limit used at that moment; it drops when the limit resets."), - .init(term: "Hover", detail: "Point at the chart to read every provider's usage at that time."), - .init(term: "Filter", detail: "Use the filter button to hide providers or limits. Your choice is remembered."), - .init(term: "7-day only", detail: "Plans without a separate 5-hour limit show only their 7-day line."), - ]) } } .task(id: appState.rateLimitHistoryRevision) { @@ -273,7 +267,7 @@ struct RateLimitHistoryPopover: View { if let selectedDate { RuleMark(x: .value("Time", selectedDate)) .foregroundStyle(ClaudeTheme.border) - .annotation(position: .top, overflowResolution: .init(x: .fit, y: .disabled)) { + .annotation(position: .top, spacing: 0, overflowResolution: .init(x: .fit(to: .chart), y: .fit(to: .chart))) { readout(at: selectedDate) } } @@ -296,6 +290,8 @@ struct RateLimitHistoryPopover: View { } .chartXSelection(value: $selectedDate) .frame(height: 260) + // Room for the top "100%" axis label, which the scroll view would clip. + .padding(.top, 8) } /// Each provider's reading closest to the pointer.