diff --git a/src/components/admin/AdminStats.vue b/src/components/admin/AdminStats.vue index eefcd04..59e33f2 100644 --- a/src/components/admin/AdminStats.vue +++ b/src/components/admin/AdminStats.vue @@ -1,65 +1,224 @@ @@ -72,14 +231,64 @@ border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + max-width: 100%; + overflow: hidden; + + @include mobile-only { + background-color: transparent; + border-radius: 0; + padding: 0; + box-shadow: none; + width: 100%; + } + + &__header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 1rem; + flex-wrap: wrap; + gap: 0.75rem; + + @include mobile-only { + margin-bottom: 0.75rem; + width: 100%; + } + } &__title { - margin: 0 0 1rem 0; + margin: 0; font-size: 1.25rem; font-weight: 400; color: $text-color; text-transform: uppercase; letter-spacing: 0.8px; + + @include mobile-only { + font-size: 1rem; + } + } + + &__controls { + display: flex; + gap: 0.5rem; + align-items: center; + + @include mobile-only { + width: 100%; + justify-content: space-between; + } + } + + &__loading { + padding: 2rem; + text-align: center; + color: $text-color-70; + + @include mobile-only { + padding: 1.5rem; + font-size: 0.9rem; + } } &__grid { @@ -89,11 +298,78 @@ @include mobile-only { grid-template-columns: repeat(2, 1fr); + gap: 0.75rem; + width: 100%; + } + } + } + + .time-range-select { + padding: 0.5rem 0.75rem; + border: 1px solid var(--background-40); + border-radius: 0.25rem; + background-color: var(--background-color); + color: $text-color; + font-size: 0.85rem; + cursor: pointer; + + @include mobile-only { + flex: 1; + font-size: 0.8rem; + padding: 0.4rem 0.5rem; + } + + &:focus { + outline: none; + border-color: var(--highlight-color); + } + } + + .refresh-btn { + background: none; + border: 1px solid var(--background-40); + cursor: pointer; + padding: 0.5rem; + border-radius: 0.25rem; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s; + flex-shrink: 0; + + @include mobile-only { + width: 40px; + padding: 0.4rem; + } + + &:hover:not(:disabled) { + background-color: var(--background-ui); + border-color: var(--highlight-color); + } + + &:disabled { + opacity: 0.5; + cursor: not-allowed; + } + + svg { + width: 18px; + height: 18px; + fill: $text-color; + + @include mobile-only { + width: 16px; + height: 16px; + } + + &.spin { + animation: spin 1s linear infinite; } } } .stat-card { + position: relative; display: flex; flex-direction: column; align-items: center; @@ -101,19 +377,150 @@ background-color: var(--background-ui); border-radius: 0.5rem; text-align: center; + transition: all 0.2s; + overflow: hidden; + min-width: 0; + + @include mobile-only { + padding: 0.65rem 0.4rem; + width: 100%; + box-sizing: border-box; + } + + &--clickable { + cursor: pointer; + + &:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + background-color: var(--background-40); + } + + @include mobile-only { + &:hover { + transform: none; + } + + &:active { + transform: scale(0.98); + } + } + } + + &__header { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + margin-bottom: 0.5rem; + + @include mobile-only { + margin-bottom: 0.35rem; + } + } + + &__icon { + width: 24px; + height: 24px; + fill: var(--highlight-color); + opacity: 0.8; + + @include mobile-only { + width: 18px; + height: 18px; + } + } + + &__trend { + font-size: 0.75rem; + font-weight: 600; + padding: 0.2rem 0.4rem; + border-radius: 0.25rem; + + @include mobile-only { + font-size: 0.65rem; + padding: 0.15rem 0.3rem; + } + + &--up { + color: $white; + background-color: var(--color-success-highlight); + } + + &--down { + color: $white; + background-color: var(--color-error-highlight); + } + } &__value { font-size: 1.75rem; font-weight: 600; color: var(--highlight-color); + margin-bottom: 0.25rem; + + @include mobile-only { + font-size: 1.4rem; + margin-bottom: 0.15rem; + } } &__label { font-size: 0.85rem; color: $text-color-70; - margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; + margin-bottom: 0.5rem; + word-break: break-word; + max-width: 100%; + + @include mobile-only { + font-size: 0.68rem; + margin-bottom: 0.35rem; + letter-spacing: 0.2px; + line-height: 1.2; + } + } + + &__sparkline { + display: flex; + align-items: flex-end; + justify-content: space-between; + width: 100%; + height: 30px; + margin-top: 0.5rem; + gap: 2px; + + @include mobile-only { + height: 20px; + margin-top: 0.35rem; + gap: 1px; + } + } + } + + .sparkline-bar { + flex: 1; + background: linear-gradient( + 180deg, + var(--highlight-color) 0%, + var(--color-green-70) 100% + ); + border-radius: 2px 2px 0 0; + min-height: 3px; + transition: all 0.3s ease; + + .stat-card:hover & { + opacity: 0.9; + } + } + + @keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); } } diff --git a/src/components/admin/RecentActivityFeed.vue b/src/components/admin/RecentActivityFeed.vue index 6762802..96a3aef 100644 --- a/src/components/admin/RecentActivityFeed.vue +++ b/src/components/admin/RecentActivityFeed.vue @@ -1,41 +1,137 @@ @@ -123,22 +299,154 @@ border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + max-width: 100%; + overflow: hidden; + + @include mobile-only { + background-color: transparent; + border-radius: 0; + padding: 0; + box-shadow: none; + width: 100%; + } + + &__header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 1rem; + flex-wrap: wrap; + gap: 1rem; + + @include mobile-only { + gap: 0.75rem; + margin-bottom: 0.75rem; + } + } &__title { - margin: 0 0 1rem 0; + margin: 0; font-size: 1.25rem; font-weight: 400; color: $text-color; text-transform: uppercase; letter-spacing: 0.8px; + + @include mobile-only { + font-size: 1rem; + width: 100%; + } + } + + &__controls { + display: flex; + gap: 0.5rem; + align-items: center; + + @include mobile-only { + width: 100%; + gap: 0.4rem; + } + } + + &__filter { + padding: 0.5rem 0.75rem; + border: 1px solid var(--background-40); + border-radius: 0.25rem; + background-color: var(--background-color); + color: $text-color; + font-size: 0.85rem; + cursor: pointer; + + @include mobile-only { + flex: 1; + font-size: 0.8rem; + padding: 0.4rem 0.5rem; + min-width: 0; + max-width: calc(50% - 0.2rem - 20px); + } + + &:focus { + outline: none; + border-color: var(--highlight-color); + } + } + + &__loading, + &__error { + padding: 2rem; + text-align: center; + color: $text-color-70; + + @include mobile-only { + padding: 1.5rem; + font-size: 0.9rem; + } + } + + &__error { + color: var(--color-error-highlight); } &__list { display: flex; flex-direction: column; gap: 0.5rem; - max-height: 400px; + max-height: 500px; overflow-y: auto; + padding-right: 0.25rem; + + @include mobile-only { + max-height: 400px; + gap: 0.4rem; + } + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-track { + background: var(--background-40); + border-radius: 3px; + } + + &::-webkit-scrollbar-thumb { + background: var(--text-color-50); + border-radius: 3px; + + &:hover { + background: var(--text-color-70); + } + } + } + + &__empty { + padding: 2rem; + text-align: center; + color: $text-color-50; + font-style: italic; + + @include mobile-only { + padding: 1.5rem; + font-size: 0.9rem; + } + } + + &__footer { + margin-top: 1rem; + padding-top: 0.75rem; + border-top: 1px solid var(--background-40); + display: flex; + justify-content: space-between; + align-items: center; + + @include mobile-only { + margin-top: 0.75rem; + padding-top: 0.5rem; + flex-direction: column; + gap: 0.5rem; + align-items: stretch; + } } } @@ -150,11 +458,30 @@ background-color: var(--background-ui); border-radius: 0.5rem; transition: background-color 0.2s; + cursor: pointer; + min-width: 0; + + @include mobile-only { + gap: 0.65rem; + padding: 0.65rem; + width: 100%; + box-sizing: border-box; + } &:hover { background-color: var(--background-40); } + @include mobile-only { + &:hover { + background-color: var(--background-ui); + } + + &:active { + background-color: var(--background-40); + } + } + &__icon { flex-shrink: 0; width: 32px; @@ -162,13 +489,38 @@ display: flex; align-items: center; justify-content: center; - background-color: var(--highlight-color); border-radius: 50%; + @include mobile-only { + width: 28px; + height: 28px; + } + + &--request { + background-color: #3b82f6; + } + + &--download { + background-color: var(--highlight-color); + } + + &--user { + background-color: #8b5cf6; + } + + &--movie { + background-color: #f59e0b; + } + svg { width: 16px; height: 16px; fill: $white; + + @include mobile-only { + width: 14px; + height: 14px; + } } } @@ -176,18 +528,181 @@ flex: 1; display: flex; flex-direction: column; - gap: 0.25rem; + gap: 0.35rem; + min-width: 0; + + @include mobile-only { + gap: 0.25rem; + } + } + + &__header { + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 0.5rem; } &__message { font-size: 0.9rem; color: $text-color; line-height: 1.3; + flex: 1; + word-break: break-word; + overflow-wrap: break-word; + + @include mobile-only { + font-size: 0.8rem; + line-height: 1.25; + } + } + + &__badge { + flex-shrink: 0; + font-size: 0.7rem; + padding: 0.15rem 0.4rem; + border-radius: 0.25rem; + background-color: var(--color-warning); + color: $black; + font-weight: 500; + text-transform: uppercase; + + @include mobile-only { + font-size: 0.6rem; + padding: 0.1rem 0.3rem; + } + } + + &__footer { + display: flex; + gap: 0.5rem; + align-items: center; + font-size: 0.75rem; + + @include mobile-only { + font-size: 0.7rem; + gap: 0.35rem; + } + } + + &__user { + color: $text-color-70; + font-weight: 500; + + @include mobile-only { + font-size: 0.7rem; + } + + &::before { + content: "@"; + opacity: 0.7; + } } &__time { - font-size: 0.75rem; color: $text-color-50; + + @include mobile-only { + font-size: 0.7rem; + } + + &::before { + content: "•"; + margin-right: 0.5rem; + + @include mobile-only { + margin-right: 0.3rem; + } + } + } + } + + .refresh-btn { + background: none; + border: 1px solid var(--background-40); + cursor: pointer; + padding: 0.5rem; + border-radius: 0.25rem; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s; + flex-shrink: 0; + + @include mobile-only { + width: 40px; + padding: 0.4rem; + } + + &:hover:not(:disabled) { + background-color: var(--background-ui); + border-color: var(--highlight-color); + } + + &:disabled { + opacity: 0.5; + cursor: not-allowed; + } + + svg { + width: 18px; + height: 18px; + fill: $text-color; + + @include mobile-only { + width: 16px; + height: 16px; + } + + &.spin { + animation: spin 1s linear infinite; + } + } + } + + .load-more-btn { + padding: 0.5rem 1rem; + border: 1px solid var(--background-40); + background-color: var(--background-ui); + color: $text-color; + border-radius: 0.25rem; + cursor: pointer; + font-size: 0.85rem; + transition: all 0.2s; + + @include mobile-only { + width: 100%; + padding: 0.65rem 1rem; + font-size: 0.9rem; + } + + &:hover:not(:disabled) { + background-color: var(--background-40); + border-color: var(--highlight-color); + } + + &:disabled { + opacity: 0.5; + cursor: not-allowed; + } + } + + .activity-count { + font-size: 0.8rem; + color: $text-color-50; + + @include mobile-only { + font-size: 0.75rem; + text-align: center; + } + } + + @keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); } } diff --git a/src/components/admin/SystemStatusPanel.vue b/src/components/admin/SystemStatusPanel.vue index 9d3c46e..70eb729 100644 --- a/src/components/admin/SystemStatusPanel.vue +++ b/src/components/admin/SystemStatusPanel.vue @@ -1,77 +1,265 @@ @@ -84,20 +272,103 @@ border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + max-width: 100%; + overflow: hidden; + + @include mobile-only { + background-color: transparent; + border-radius: 0; + padding: 0; + box-shadow: none; + width: 100%; + } + + &__header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 1rem; + + @include mobile-only { + margin-bottom: 0.75rem; + } + } &__title { - margin: 0 0 1rem 0; + margin: 0; font-size: 1.25rem; font-weight: 400; color: $text-color; text-transform: uppercase; letter-spacing: 0.8px; + + @include mobile-only { + font-size: 1rem; + } + } + + &__loading { + padding: 2rem; + text-align: center; + color: $text-color-70; + + @include mobile-only { + padding: 1.5rem; + font-size: 0.9rem; + } } &__items { display: flex; flex-direction: column; gap: 0.75rem; + + @include mobile-only { + gap: 0.5rem; + } + } + } + + .refresh-btn { + background: none; + border: 1px solid var(--background-40); + cursor: pointer; + padding: 0.5rem; + border-radius: 0.25rem; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s; + flex-shrink: 0; + + @include mobile-only { + width: 40px; + padding: 0.4rem; + } + + &:hover:not(:disabled) { + background-color: var(--background-ui); + border-color: var(--highlight-color); + } + + &:disabled { + opacity: 0.5; + cursor: not-allowed; + } + + svg { + width: 18px; + height: 18px; + fill: $text-color; + + @include mobile-only { + width: 16px; + height: 16px; + } + + &.spin { + animation: spin 1s linear infinite; + } } } @@ -105,6 +376,31 @@ padding: 0.75rem; background-color: var(--background-ui); border-radius: 0.5rem; + cursor: pointer; + transition: all 0.2s; + min-width: 0; + + @include mobile-only { + padding: 0.65rem; + width: 100%; + box-sizing: border-box; + } + + &:hover { + background-color: var(--background-40); + transform: translateX(2px); + } + + @include mobile-only { + &:hover { + transform: none; + } + + &:active { + background-color: var(--background-40); + transform: scale(0.98); + } + } &__header { display: flex; @@ -117,12 +413,41 @@ font-weight: 500; color: $text-color; font-size: 0.95rem; + + @include mobile-only { + font-size: 0.85rem; + } + } + + &__indicator-wrapper { + display: flex; + align-items: center; + gap: 0.5rem; + + @include mobile-only { + gap: 0.35rem; + } + } + + &__uptime { + font-size: 0.75rem; + color: $text-color-50; + + @include mobile-only { + font-size: 0.7rem; + } } &__indicator { width: 10px; height: 10px; border-radius: 50%; + animation: pulse 2s infinite; + + @include mobile-only { + width: 8px; + height: 8px; + } &--online { background-color: var(--color-success-highlight); @@ -144,16 +469,301 @@ display: flex; justify-content: space-between; align-items: center; + margin-bottom: 0.5rem; + + @include mobile-only { + flex-direction: column; + align-items: flex-start; + gap: 0.25rem; + margin-bottom: 0.35rem; + } } &__value { font-size: 0.85rem; color: $text-color-70; + + @include mobile-only { + font-size: 0.8rem; + } } &__description { font-size: 0.8rem; color: $text-color-50; + + @include mobile-only { + font-size: 0.75rem; + } + } + + &__metrics { + margin-top: 0.5rem; + display: flex; + flex-direction: column; + gap: 0.5rem; + + @include mobile-only { + margin-top: 0.35rem; + gap: 0.35rem; + } + } + } + + .metric { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.75rem; + + &__label { + min-width: 70px; + color: $text-color-70; + } + + &__bar { + flex: 1; + height: 6px; + background-color: var(--background-40); + border-radius: 3px; + overflow: hidden; + } + + &__fill { + height: 100%; + border-radius: 3px; + transition: width 0.3s ease; + + &--good { + background-color: var(--color-success-highlight); + } + + &--warning { + background-color: var(--color-warning-highlight); + } + + &--critical { + background-color: var(--color-error-highlight); + } + } + + &__value { + min-width: 35px; + text-align: right; + color: $text-color-50; + } + } + + .modal-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.7); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; + padding: 1rem; + + @include mobile-only { + padding: 0.5rem; + align-items: flex-end; + } + } + + .modal-content { + background-color: var(--background-color-secondary); + border-radius: 0.5rem; + max-width: 600px; + width: 100%; + max-height: 80vh; + overflow-y: auto; + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); + + @include mobile-only { + max-height: 90vh; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + } + + .modal-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1.5rem; + border-bottom: 1px solid var(--background-40); + + @include mobile-only { + padding: 1rem; + } + + h3 { + margin: 0; + color: $text-color; + font-weight: 400; + + @include mobile-only { + font-size: 1rem; + } + } + } + + .close-btn { + background: none; + border: none; + cursor: pointer; + padding: 0.25rem; + display: flex; + align-items: center; + justify-content: center; + border-radius: 0.25rem; + transition: background-color 0.2s; + + &:hover { + background-color: var(--background-40); + } + + svg { + width: 20px; + height: 20px; + fill: $text-color; + } + } + + .modal-body { + padding: 1.5rem; + + @include mobile-only { + padding: 1rem; + } + } + + .detail-row { + display: flex; + justify-content: space-between; + padding: 0.75rem 0; + border-bottom: 1px solid var(--background-40); + + &:last-child { + border-bottom: none; + } + } + + .detail-label { + font-weight: 500; + color: $text-color-70; + } + + .detail-value { + color: $text-color; + + &--online { + color: var(--color-success-highlight); + } + + &--warning { + color: var(--color-warning-highlight); + } + + &--offline { + color: var(--color-error-highlight); + } + } + + .detail-logs { + margin-top: 1.5rem; + padding-top: 1rem; + border-top: 1px solid var(--background-40); + + h4 { + margin: 0 0 0.75rem 0; + color: $text-color; + font-weight: 400; + font-size: 0.95rem; + } + } + + .log-entry { + display: flex; + gap: 1rem; + padding: 0.5rem; + font-size: 0.8rem; + background-color: var(--background-ui); + border-radius: 0.25rem; + margin-bottom: 0.5rem; + + &:last-child { + margin-bottom: 0; + } + } + + .log-time { + min-width: 60px; + color: $text-color-50; + } + + .log-message { + color: $text-color-70; + } + + .modal-footer { + padding: 1rem 1.5rem; + border-top: 1px solid var(--background-40); + display: flex; + gap: 0.5rem; + justify-content: flex-end; + + @include mobile-only { + padding: 1rem; + flex-direction: column-reverse; + } + } + + .action-btn { + padding: 0.5rem 1rem; + border: 1px solid var(--highlight-color); + background-color: var(--highlight-color); + color: $white; + border-radius: 0.25rem; + cursor: pointer; + font-size: 0.85rem; + transition: all 0.2s; + + &:hover { + background-color: var(--color-green-90); + border-color: var(--color-green-90); + } + + &--secondary { + background-color: transparent; + color: $text-color; + border-color: var(--background-40); + + &:hover { + background-color: var(--background-ui); + } + } + } + + @keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + } + + @keyframes pulse { + 0%, + 100% { + opacity: 1; + } + 50% { + opacity: 0.6; } } diff --git a/src/components/admin/TorrentManagementGrid.vue b/src/components/admin/TorrentManagementGrid.vue index e46a381..a541bf4 100644 --- a/src/components/admin/TorrentManagementGrid.vue +++ b/src/components/admin/TorrentManagementGrid.vue @@ -48,10 +48,6 @@ sortDirection === "asc" ? "↑" : "↓" }} - Leechers - Uploaded - Downloaded - Ratio Status Actions @@ -65,22 +61,6 @@ {{ torrent.name }} {{ torrent.size }} {{ torrent.seeders }} - {{ torrent.leechers }} - {{ torrent.uploaded }} - {{ torrent.downloaded }} - - - {{ torrent.ratio.toFixed(2) }} - - {{ torrent.status }} @@ -340,6 +320,16 @@ border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + max-width: 100%; + + @include mobile-only { + background-color: transparent; + border-radius: 0; + padding: 0; + box-shadow: none; + width: 100%; + overflow-x: auto; + } &__header { display: flex; @@ -348,6 +338,11 @@ margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; + + @include mobile-only { + gap: 0.75rem; + margin-bottom: 0.75rem; + } } &__title { @@ -357,12 +352,22 @@ color: $text-color; text-transform: uppercase; letter-spacing: 0.8px; + + @include mobile-only { + font-size: 1rem; + width: 100%; + } } &__controls { display: flex; gap: 0.5rem; align-items: center; + + @include mobile-only { + width: 100%; + gap: 0.4rem; + } } &__search { @@ -373,6 +378,14 @@ color: $text-color; font-size: 0.85rem; + @include mobile-only { + flex: 1; + min-width: 0; + font-size: 0.8rem; + padding: 0.4rem 0.5rem; + max-width: calc(50% - 0.2rem - 20px); + } + &:focus { outline: none; border-color: var(--highlight-color); @@ -388,6 +401,13 @@ font-size: 0.85rem; cursor: pointer; + @include mobile-only { + flex: 1; + font-size: 0.8rem; + padding: 0.4rem 0.5rem; + max-width: calc(50% - 0.2rem - 20px); + } + &:focus { outline: none; border-color: var(--highlight-color); @@ -399,6 +419,11 @@ padding: 2rem; text-align: center; color: $text-color-70; + + @include mobile-only { + padding: 1.5rem; + font-size: 0.9rem; + } } &__error { @@ -409,6 +434,11 @@ margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--background-40); + + @include mobile-only { + margin-top: 0.75rem; + padding-top: 0.5rem; + } } &__table { @@ -417,11 +447,23 @@ border-radius: 0.5rem; overflow: hidden; + @include mobile-only { + display: block; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + max-width: 100%; + } + th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--background-40); + + @include mobile-only { + padding: 0.5rem 0.4rem; + font-size: 0.75rem; + } } th { @@ -432,6 +474,12 @@ letter-spacing: 0.5px; font-weight: 400; + @include mobile-only { + font-size: 0.7rem; + letter-spacing: 0.3px; + white-space: nowrap; + } + &.sortable { cursor: pointer; user-select: none; @@ -445,6 +493,11 @@ td { font-size: 0.85rem; color: $text-color; + + @include mobile-only { + font-size: 0.75rem; + white-space: nowrap; + } } tbody tr { @@ -468,25 +521,14 @@ } .torrent-name { - max-width: 200px; + max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @include mobile-only { - max-width: 120px; - } - } - - .ratio { - font-weight: 500; - - &--good { - color: var(--color-success-highlight); - } - - &--bad { - color: var(--color-error-highlight); + max-width: 150px; + font-size: 0.7rem; } } @@ -498,6 +540,11 @@ text-transform: uppercase; font-weight: 500; + @include mobile-only { + font-size: 0.6rem; + padding: 0.2rem 0.35rem; + } + &--seeding { background-color: var(--color-success); color: var(--color-success-text); @@ -569,6 +616,12 @@ align-items: center; justify-content: center; transition: all 0.2s; + flex-shrink: 0; + + @include mobile-only { + width: 40px; + padding: 0.4rem; + } &:hover:not(:disabled) { background-color: var(--background-ui); @@ -585,6 +638,11 @@ height: 18px; fill: $text-color; + @include mobile-only { + width: 16px; + height: 16px; + } + &.spin { animation: spin 1s linear infinite; } diff --git a/src/pages/AdminPage.vue b/src/pages/AdminPage.vue index 853c976..db24230 100644 --- a/src/pages/AdminPage.vue +++ b/src/pages/AdminPage.vue @@ -30,9 +30,13 @@ .admin { padding: 3rem; + max-width: 100%; + overflow-x: hidden; @include mobile-only { - padding: 1rem; + padding: 0.75rem; + width: 100%; + box-sizing: border-box; } &__title { @@ -40,6 +44,11 @@ font-size: 2rem; font-weight: 300; color: $text-color; + + @include mobile-only { + font-size: 1.5rem; + margin: 0 0 1rem 0; + } } &__grid { @@ -50,27 +59,49 @@ @include mobile-only { grid-template-columns: 1fr; + gap: 1rem; + margin-bottom: 1rem; } } &__stats { grid-column: 1; + min-width: 0; + + @include mobile-only { + width: 100%; + } } &__system-status { grid-column: 2; + min-width: 0; @include mobile-only { grid-column: 1; + width: 100%; } } &__torrents { margin-bottom: 1.5rem; + min-width: 0; + overflow-x: hidden; + + @include mobile-only { + margin-bottom: 1rem; + width: 100%; + } } &__activity { margin-bottom: 1.5rem; + min-width: 0; + + @include mobile-only { + margin-bottom: 1rem; + width: 100%; + } } }