Skip to content

Commit 4e6b0ab

Browse files
authored
Merge pull request #60 from ls1intum/adjust-km-style
Adjust km style
2 parents 18e94d6 + 5c92bc4 commit 4e6b0ab

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

application-server/src/main/java/com/ase/angelos_kb_backend/service/CleanupService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55

66
import org.springframework.scheduling.annotation.Scheduled;
77
import org.springframework.stereotype.Service;
8+
import org.springframework.transaction.annotation.Transactional;
89

910
import com.ase.angelos_kb_backend.repository.EventRepository;
1011

12+
1113
@Service
1214
public class CleanupService {
1315
private final EventRepository eventLogRepository;
@@ -17,6 +19,7 @@ public CleanupService(EventRepository eventLogRepository) {
1719
}
1820

1921
@Scheduled(cron = "0 15 2 * * ?")
22+
@Transactional
2023
public void cleanOldEventLogs() {
2124
Instant cutoff = Instant.now().minus(365, ChronoUnit.DAYS);
2225
long countBefore = eventLogRepository.count();

chatbot-ui/src/app/chat/chat.component.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ $logo-size: 40px;
104104
display: flex;
105105
flex-direction: column;
106106
justify-content: flex-start;
107+
108+
@media (max-width: 900px) {
109+
padding: 8px
110+
}
107111
}
108112

109113
.message {
@@ -122,6 +126,11 @@ $logo-size: 40px;
122126
margin: 4px 0;
123127
}
124128

129+
@media (max-width: 900px) {
130+
font-size: 14px;
131+
padding: 8px;
132+
}
133+
125134
&.system {
126135
background-color: $tum-light-blue;
127136
color: white;
@@ -233,6 +242,12 @@ $logo-size: 40px;
233242
margin-top: 2px;
234243
}
235244

245+
@media (max-width: 900px) {
246+
font-size: 11px;
247+
gap: 2px;
248+
margin-top: 3px;
249+
}
250+
236251
a {
237252
color: $tum-blue-light-dark;
238253
font-weight: 600;

0 commit comments

Comments
 (0)