From 62365adc7589a8c6b481659e77adc4bdf693e711 Mon Sep 17 00:00:00 2001
From: kimsible <kimsible@users.noreply.github.com>
Date: Tue, 28 Apr 2020 14:39:32 +0200
Subject: [PATCH] Fix buttons display on mobile history view

---
 .../my-account-history.component.scss         | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/client/src/app/+my-account/my-account-history/my-account-history.component.scss b/client/src/app/+my-account/my-account-history/my-account-history.component.scss
index af6395fb1..9eeeaf310 100644
--- a/client/src/app/+my-account/my-account-history/my-account-history.component.scss
+++ b/client/src/app/+my-account/my-account-history/my-account-history.component.scss
@@ -12,6 +12,8 @@
 .top-buttons {
   margin-bottom: 20px;
   display: flex;
+  align-items: center;
+  flex-wrap: wrap;
 
   .history-switch {
     display: flex;
@@ -38,3 +40,20 @@
     flex-grow: 1;
   }
 }
+
+@media screen and (max-width: $mobile-view) {
+  .top-buttons {
+    .history-switch label, .delete-history {
+      @include ellipsis;
+    }
+
+    .history-switch label {
+      width: 60%;
+    }
+
+    .delete-history {
+      margin-left: auto;
+      max-width: 32%;
+    }
+  }
+}