This commit is contained in:
neon443 committed 2025-05-21 18:10:22 +01:00
1 parent 773a083682
commit 62318c5ddc
6 files changed
+71 -13

No files matched your search

+2
View File
@@ -16,7 +16,9 @@ struct ContentView: View {
ForEach(viewModel.events) { event in
EventListView(viewModel: viewModel, event: event)
}
.padding(.trailing)
}
.scrollContentBackground(.hidden)
}
}
+7 -3
View File
@@ -12,10 +12,11 @@ struct EventListView: View {
@State var event: Event
@State var largeTick: Bool = false
@State var hovering: Bool = false
var body: some View {
ZStack {
Color.two
Color.black.opacity(hovering ? 0.5 : 0.0)
HStack {
RoundedRectangle(cornerRadius: 5)
.frame(width: 7)
@@ -121,10 +122,13 @@ struct EventListView: View {
}
}
.transition(.opacity)
.padding(.vertical, 5)
.background(.ultraThinMaterial)
.fixedSize(horizontal: false, vertical: true)
}
.onHover { isHovering in
withAnimation {
hovering.toggle()
}
}
.contextMenu() {
Button(role: .destructive) {
let eventToModify = viewModel.events.firstIndex() { currEvent in
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.