Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#43697] add storage files breadcrumbs (#11472)

Eric Schubertd76605182b23
diff --git a/frontend/src/app/core/state/storage-files/storage-files.store.ts b/frontend/src/app/core/state/storage-files/storage-files.store.ts
index 99a75f2b075..1eb482f568a 100644
--- a/frontend/src/app/core/state/storage-files/storage-files.store.ts
+++ b/frontend/src/app/core/state/storage-files/storage-files.store.ts
@@ -32,7 +32,10 @@ import { IStorageFile } from 'core-app/core/state/storage-files/storage-file.mod
export interface StorageFilesState extends CollectionState<IStorageFile> {}
-@StoreConfig({ name: 'storage-files' })
+@StoreConfig({
+ name: 'storage-files',
+ resettable: true,
+})
export class StorageFilesStore extends EntityStore<StorageFilesState> {
constructor() {
super(createInitialCollectionState());
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts
index 6aaeef93a94..2a28c2b0706 100644
--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts
+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts
@@ -155,7 +155,9 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit
public openLinkFilesDialog():void {
const locals = {
- storageType: this.storageType,
+ storageType: this.storage._links.type.href,
+ storageTypeName: this.storageType,
+ storageName: this.storage.name,
storageLocation: this.storageFilesLocation,
storageLink: this.storage._links.self,
};
diff --git a/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.component.ts b/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.component.ts
index 3feedbf0aec..d2ce5c3292b 100644
--- a/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.component.ts
+++ b/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.component.ts
@@ -44,6 +44,8 @@ import { OpModalComponent } from 'core-app/shared/components/modal/modal.compone
import { OpModalLocalsToken } from 'core-app/shared/components/modal/modal.service';
import { StorageFilesResourceService } from 'core-app/core/state/storage-files/storage-files.service';
import { IHalResourceLink } from 'core-app/core/state/hal-resource';
+import { BreadcrumbsContent } from 'core-app/spot/components/breadcrumbs/breadcrumbs-content';
+import getIconForStorageType from 'core-app/shared/components/file-links/storage-icons/get-icon-for-storage-type';
@Component({
templateUrl: 'file-picker-modal.html',
@@ -54,10 +56,12 @@ export class FilePickerModalComponent extends OpModalComponent implements OnInit
public storageFiles$ = new BehaviorSubject<IStorageFile[]>([]);
+ public breadcrumbs:BreadcrumbsContent;
+
public text = {
header: this.i18n.t('js.storages.file_links.select'),
buttons: {
- openStorage: ():string => this.i18n.t('js.storages.open_storage', { storageType: this.locals.storageType as string }),
+ openStorage: ():string => this.i18n.t('js.storages.open_storage', { storageType: this.locals.storageTypeName as string }),
submit: ():string => this.i18n.t('js.storages.file_links.selection_any', { number: this.selectedFileCount }),
submitEmptySelection: this.i18n.t('js.storages.file_links.selection_none'),
cancel: this.i18n.t('js.button_cancel'),
@@ -83,6 +87,11 @@ export class FilePickerModalComponent extends OpModalComponent implements OnInit
ngOnInit():void {
super.ngOnInit();
+ this.breadcrumbs = new BreadcrumbsContent([{
+ text: this.locals.storageName as string,
+ icon: getIconForStorageType(this.locals.storageType as string),
+ }]);
+
const filesLink:IHalResourceLink = {
href: `${(this.locals.storageLink as IHalResourceLink).href}/files`,
title: 'Storage files',
diff --git a/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html b/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html
index 9f51e918c11..a8b7ec33af5 100644
--- a/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html
+++ b/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html
@@ -17,6 +17,8 @@
<div class="spot-modal--body spot-container">
<ng-container *ngIf="(loading$ | async) === false; else loadingTemplate">
+ <spot-breadcrumbs [content]="breadcrumbs"></spot-breadcrumbs>
+
<ul
class="spot-list spot-list_compact op-file-list"
data-qa-selector="op-files-picker-modal--file-list"
@@ -45,16 +47,17 @@
[textContent]="text.buttons.cancel"
(click)="closeMe()"
></button>
- <button
- type="button"
- class="button spot-action-bar--action"
- [ngClass]="{ '-highlight': selectedFileCount > 0 }"
- [disabled]="selectedFileCount === 0"
- (click)="createSelectedFileLinks()"
- >
- <span class="spot-icon spot-icon_add-link"></span>
- <span>{{selectedFileCount > 0 ? text.buttons.submit() : text.buttons.submitEmptySelection}}</span>
- </button>
+<!-- TODO: #44376, enable button with functionality-->
+<!-- <button-->
+<!-- type="button"-->
+<!-- class="button spot-action-bar&#45;&#45;action"-->
+<!-- [ngClass]="{ '-highlight': selectedFileCount > 0 }"-->
+<!-- [disabled]="selectedFileCount === 0"-->
+<!-- (click)="createSelectedFileLinks()"-->
+<!-- >-->
+<!-- <span class="spot-icon spot-icon_add-link"></span>-->
+<!-- <span>{{selectedFileCount > 0 ? text.buttons.submit() : text.buttons.submitEmptySelection}}</span>-->
+<!-- </button>-->
</div>
</div>
</div>
diff --git a/frontend/src/app/shared/components/file-links/storage-icons/get-icon-for-storage-type.ts b/frontend/src/app/shared/components/file-links/storage-icons/get-icon-for-storage-type.ts
new file mode 100644
index 00000000000..f5f8aa0a6f8
--- /dev/null
+++ b/frontend/src/app/shared/components/file-links/storage-icons/get-icon-for-storage-type.ts
@@ -0,0 +1,37 @@
+// -- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2022 the OpenProject GmbH
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License version 3.
+//
+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+// Copyright (C) 2006-2013 Jean-Philippe Lang
+// Copyright (C) 2010-2013 the ChiliProject Team
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+// See COPYRIGHT and LICENSE files for more details.
+//++
+
+import { storageIconMappings } from 'core-app/shared/components/file-links/storage-icons/icon-mappings';
+
+export default function getIconForStorageType(storageType?:string):string {
+ if (storageType && storageIconMappings[storageType]) {
+ return storageIconMappings[storageType];
+ }
+
+ return storageIconMappings.default;
+}
diff --git a/frontend/src/app/shared/components/file-links/storage-icons/icon-mappings.ts b/frontend/src/app/shared/components/file-links/storage-icons/icon-mappings.ts
new file mode 100644
index 00000000000..01f33abb8ba
--- /dev/null
+++ b/frontend/src/app/shared/components/file-links/storage-icons/icon-mappings.ts
@@ -0,0 +1,35 @@
+// -- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2022 the OpenProject GmbH
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License version 3.
+//
+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+// Copyright (C) 2006-2013 Jean-Philippe Lang
+// Copyright (C) 2010-2013 the ChiliProject Team
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+// See COPYRIGHT and LICENSE files for more details.
+//++
+
+import { nextcloud } from 'core-app/shared/components/file-links/file-links-constants.const';
+
+export const storageIconMappings:Record<string, string> = {
+ [nextcloud]: 'nextcloud-circle',
+
+ default: 'ticket',
+};
diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts
index 59e6c5e8483..46322efb55a 100644
--- a/frontend/src/app/shared/shared.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@ -30,6 +30,8 @@ import {
Injector,
NgModule,
} from '@angular/core';
+import { A11yModule } from '@angular/cdk/a11y';
+import { UIRouterGlobals } from '@uirouter/core';
import { NgSelectModule } from '@ng-select/ng-select';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { PortalModule } from '@angular/cdk/portal';
@@ -84,8 +86,6 @@ import { OpProjectIncludeListComponent } from './components/project-include/list
import { OpLoadingProjectListComponent } from './components/searchable-project-list/loading-project-list.component';
import { ViewsResourceService } from 'core-app/core/state/views/views.service';
import { OpenprojectContentLoaderModule } from 'core-app/shared/components/op-content-loader/openproject-content-loader.module';
-import { UIRouterGlobals } from '@uirouter/core';
-import { A11yModule } from '@angular/cdk/a11y';
export function bootstrapModule(injector:Injector):void {
// Ensure error reporter is run
@@ -198,7 +198,6 @@ export function bootstrapModule(injector:Injector):void {
ViewsResourceService,
],
declarations: [
- OpDateTimeComponent,
ViewSelectComponent,
ToastsContainerComponent,
diff --git a/frontend/src/app/spot/components/breadcrumbs/breadcrumbs-content.ts b/frontend/src/app/spot/components/breadcrumbs/breadcrumbs-content.ts
new file mode 100644
index 00000000000..b1692acf365
--- /dev/null
+++ b/frontend/src/app/spot/components/breadcrumbs/breadcrumbs-content.ts
@@ -0,0 +1,39 @@
+// -- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2022 the OpenProject GmbH
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License version 3.
+//
+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+// Copyright (C) 2006-2013 Jean-Philippe Lang
+// Copyright (C) 2010-2013 the ChiliProject Team
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+// See COPYRIGHT and LICENSE files for more details.
+//++
+
+export interface Breadcrumb {
+ text:string;
+ icon?:string;
+ navigate?:() => void;
+}
+
+export class BreadcrumbsContent {
+ constructor(
+ public readonly crumbs:Breadcrumb[],
+ ) { }
+}
diff --git a/frontend/src/app/spot/components/breadcrumbs/breadcrumbs.component.html b/frontend/src/app/spot/components/breadcrumbs/breadcrumbs.component.html
new file mode 100644
index 00000000000..bc0ae5abec8
--- /dev/null
+++ b/frontend/src/app/spot/components/breadcrumbs/breadcrumbs.component.html
@@ -0,0 +1,44 @@
+<ng-container
+ *ngFor="let crumb of content.crumbs; let i = index; let last = last; let first = first"
+>
+ <div
+ *ngIf="(first && !last) || i === content.crumbs.length - 2 || i === content.crumbs.length - 3"
+ class="spot-breadcrumbs--crumb"
+ [ngClass]="{
+ 'spot-breadcrumbs--crumb_root': first,
+ 'spot-breadcrumbs--crumb_parent': i === content.crumbs.length - 2,
+ 'spot-breadcrumbs--crumb_grandparent': i === content.crumbs.length - 3
+ }"
+ >
+ <button
+ type="button"
+ class="spot-link spot-breadcrumbs--crumb-action-item"
+ [title]="crumb.text"
+ (click)="crumb.navigate()"
+ >
+ <span *ngIf="crumb.icon" class="spot-icon spot-icon_{{crumb.icon}}"></span>
+ <span [textContent]="crumb.text" class="spot-breadcrumbs--crumb-action-item-text"></span>
+ <span class="spot-breadcrumbs--crumb-action-item-dots"></span>
+ </button>
+
+ <span class="spot-breadcrumbs--crumb-divider spot-icon spot-icon_arrow-right5"></span>
+ </div>
+
+ <div
+ *ngIf="i === 1 && content.crumbs.length > 4"
+ class="spot-breadcrumbs--crumb spot-breadcrumbs--crumb_collapsed"
+ >
+ <span class="spot-breadcrumbs--crumb-divider spot-icon spot-icon_arrow-right5"></span>
+ </div>
+
+ <div
+ *ngIf="last"
+ class="spot-breadcrumbs--crumb spot-breadcrumbs--crumb_last"
+ >
+ <span *ngIf="crumb.icon" class="spot-icon spot-icon_{{crumb.icon}}"></span>
+ <span
+ class="spot-breadcrumbs--crumb-action-item"
+ [textContent]="crumb.text"
+ ></span>
+ </div>
+</ng-container>
diff --git a/frontend/src/app/spot/components/breadcrumbs/breadcrumbs.component.ts b/frontend/src/app/spot/components/breadcrumbs/breadcrumbs.component.ts
new file mode 100644
index 00000000000..a2fd5452ff2
--- /dev/null
+++ b/frontend/src/app/spot/components/breadcrumbs/breadcrumbs.component.ts
@@ -0,0 +1,47 @@
+// -- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2022 the OpenProject GmbH
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License version 3.
+//
+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+// Copyright (C) 2006-2013 Jean-Philippe Lang
+// Copyright (C) 2010-2013 the ChiliProject Team
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+// See COPYRIGHT and LICENSE files for more details.
+//++
+
+import {
+ ChangeDetectionStrategy,
+ Component,
+ HostBinding,
+ Input,
+} from '@angular/core';
+
+import { BreadcrumbsContent } from 'core-app/spot/components/breadcrumbs/breadcrumbs-content';
+
+@Component({
+ selector: 'spot-breadcrumbs',
+ templateUrl: './breadcrumbs.component.html',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+})
+export class SpotBreadcrumbsComponent {
+ @HostBinding('class.spot-breadcrumbs') className = true;
+
+ @Input() content:BreadcrumbsContent;
+}
diff --git a/frontend/src/app/spot/spot.module.ts b/frontend/src/app/spot/spot.module.ts
index 3ad0f66b764..b7ec798807e 100644
--- a/frontend/src/app/spot/spot.module.ts
+++ b/frontend/src/app/spot/spot.module.ts
@@ -4,6 +4,7 @@ import {
ReactiveFormsModule,
} from '@angular/forms';
import { CommonModule } from '@angular/common';
+
import { I18nService } from 'core-app/core/i18n/i18n.service';
import { SpotCheckboxComponent } from './components/checkbox/checkbox.component';
import { SpotSwitchComponent } from './components/switch/switch.component';
@@ -14,7 +15,8 @@ import { SpotDropModalComponent } from './components/drop-modal/drop-modal.compo
import { SpotTooltipComponent } from './components/tooltip/tooltip.component';
import { SpotFormFieldComponent } from './components/form-field/form-field.component';
import { SpotFormBindingDirective } from './components/form-field/form-binding.directive';
-import { SpotSelectorFieldComponent } from 'core-app/spot/components/selector-field/selector-field.component';
+import { SpotBreadcrumbsComponent } from './components/breadcrumbs/breadcrumbs.component';
+import { SpotSelectorFieldComponent } from './components/selector-field/selector-field.component';
@NgModule({
imports: [
@@ -28,6 +30,7 @@ import { SpotSelectorFieldComponent } from 'core-app/spot/components/selector-fi
],
declarations: [
+ SpotBreadcrumbsComponent,
SpotCheckboxComponent,
SpotSwitchComponent,
SpotToggleComponent,
@@ -41,6 +44,7 @@ import { SpotSelectorFieldComponent } from 'core-app/spot/components/selector-fi
],
exports: [
+ SpotBreadcrumbsComponent,
SpotCheckboxComponent,
SpotSwitchComponent,
SpotToggleComponent,
diff --git a/frontend/src/app/spot/styles/sass/common/container.sass b/frontend/src/app/spot/styles/sass/common/container.sass
index 965b252def7..53d71999129 100644
--- a/frontend/src/app/spot/styles/sass/common/container.sass
+++ b/frontend/src/app/spot/styles/sass/common/container.sass
@@ -23,3 +23,8 @@
> .spot-list
margin: $spot-spacing-1 0
+ > .spot-breadcrumbs
+ margin: $spot-spacing-0_5 $spot-spacing-1 0
+
+ + .spot-list
+ margin-top: $spot-spacing-0_5
diff --git a/frontend/src/app/spot/styles/sass/components/breadcrumbs.sass b/frontend/src/app/spot/styles/sass/components/breadcrumbs.sass
new file mode 100644
index 00000000000..47c3b6176c7
--- /dev/null
+++ b/frontend/src/app/spot/styles/sass/components/breadcrumbs.sass
@@ -0,0 +1,63 @@
+.spot-breadcrumbs
+ @include spot-caption()
+
+ display: flex
+ align-items: baseline
+
+ &--crumb
+ display: flex
+ align-items: center
+ flex-shrink: 0
+ min-width: 0
+
+ > .spot-icon
+ width: $spot-spacing-1_5
+ height: $spot-spacing-1_5
+
+ &_collapsed:before
+ content: '...'
+
+ &_parent,
+ &_grandparent
+ flex-shrink: 1
+
+ &-action-item
+ flex-shrink: 1
+ white-space: nowrap
+ overflow: hidden
+ text-overflow: ellipsis
+
+ &:not(:first-child)
+ margin-left: $spot-spacing-0_25
+
+ &-dots
+ display: none
+
+ &:before
+ content: '...'
+
+ &-divider
+ font-size: 0.5rem
+ flex-shrink: 0
+
+ &:not(:first-child)
+ margin-left: $spot-spacing-0_25
+
+ @media #{$spot-mq-mobile}
+ &_last
+ flex-shrink: 1
+
+ &_collapsed
+ display: none
+
+ &_grandparent:not(&_root)
+ display: none
+
+ &_parent
+ flex-shrink: 0
+
+ &-action-item-text
+ display: none
+
+ &-action-item-dots
+ display: inline-block
diff --git a/frontend/src/app/spot/styles/sass/components/index.sass b/frontend/src/app/spot/styles/sass/components/index.sass
index d94a5f4febc..980acdbe004 100644
--- a/frontend/src/app/spot/styles/sass/components/index.sass
+++ b/frontend/src/app/spot/styles/sass/components/index.sass
@@ -1,6 +1,7 @@
// This directory will hold files that implement the styles for specific blocks and components
// Import them here
@import './button'
+@import './breadcrumbs'
@import './divider'
@import './link'
@import './toggle'
diff --git a/frontend/src/global_styles/content/_principal.sass b/frontend/src/global_styles/content/_principal.sass
index 4a8d73a33b3..568312492a3 100644
--- a/frontend/src/global_styles/content/_principal.sass
+++ b/frontend/src/global_styles/content/_principal.sass
@@ -1,7 +1,7 @@
.op-principal
display: inline-flex
align-items: center
- vertical-align: middle
+ justify-content: center
&--avatar
flex-grow: 0
@@ -26,4 +26,4 @@
display: none
.op-avatar + .op-principal--name
- margin-left: $spot-spacing-0_5
\ No newline at end of file
+ margin-left: $spot-spacing-0_5
diff --git a/frontend/src/global_styles/content/work_packages/shared/_file_list.sass b/frontend/src/global_styles/content/work_packages/shared/_file_list.sass
index 57a2edce62a..a3076c31572 100644
--- a/frontend/src/global_styles/content/work_packages/shared/_file_list.sass
+++ b/frontend/src/global_styles/content/work_packages/shared/_file_list.sass
@@ -27,7 +27,7 @@
//++
.op-file-list
- margin-bottom: $spot-spacing-0-75
+ margin-bottom: $spot-spacing-0_75
&--item
&-action
@@ -51,10 +51,10 @@
&-title
@include spot-body-small
- line-height: $spot-spacing-1-5
+ line-height: $spot-spacing-1_5
word-break: normal
@include text-shortener
- padding-right: $spot_spacing-0-5
+ padding-right: $spot-spacing-0_5
&-text
@include spot-caption()
@@ -64,12 +64,12 @@
flex-shrink: 0
&:not(:last-child)
- margin-right: $spot-spacing-0-5
+ margin-right: $spot-spacing-0_5
&-avatar
- width: $spot-spacing-1-5
- height: $spot-spacing-1-5
- display: inline-block
+ width: $spot-spacing-1_5
+ height: $spot-spacing-1_5
+ flex-shrink: 0
&-floating-wrapper:not(&-floating-wrapper__disabled):hover &-text,
&-floating-wrapper:not(&-floating-wrapper__disabled):hover &-avatar
@@ -78,18 +78,18 @@
&-floating-text
@include spot-body-small()
- padding-right: $spot-spacing-0-25
+ padding-right: $spot-spacing-0_25
overflow: hidden
color: var(--primary-color)
&-icon
- margin-right: $spot-spacing-0-25
+ margin-right: $spot-spacing-0_25
& &--item &--item-floating-actions
padding-right: 0
& &--item &--item-floating-text
- padding-right: $spot-spacing-0-5
+ padding-right: $spot-spacing-0_5
& &--item &--item-action
padding-left: 0
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files_tab.sass b/frontend/src/global_styles/content/work_packages/tabs/_files_tab.sass
index 7df6a0f4d7b..456d89877e8 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_files_tab.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_files_tab.sass
@@ -28,7 +28,7 @@
.op-files-tab
&--file-upload
- margin-top: $spot-spacing-0-75
+ margin-top: $spot-spacing-0_75
&--storage-info-box
margin-top: 0.875rem
@@ -42,14 +42,14 @@
width: 3.375rem
height: 3.375rem
font-size: 1.75rem
- margin-right: $spot_spacing-0-5
+ margin-right: $spot-spacing-0_5
.text-box
grid-area: text
.text-box-header
font-weight: 700
- line-height: $spot-spacing-1-5
+ line-height: $spot-spacing-1_5
.text-box-content
@include spot-body-small()
@@ -62,17 +62,18 @@
justify-content: end
&-button
- margin: $spot_spacing-0-75 0 0
+ margin: $spot-spacing-0_75 0 0
&:not(:last-child)
- margin-right: $spot-spacing-0-5
+ margin-right: $spot-spacing-0_5
&--icon
- width: $spot-spacing-1-5
- height: $spot-spacing-1-5
+ width: $spot-spacing-1_5
+ height: $spot-spacing-1_5
+ flex-shrink: 0
&:not(:first-child)
- margin-left: $spot-spacing-0-5
+ margin-left: $spot-spacing-0_5
&_pdf
color: #B93A33
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index eab1c5a3e24..44256c52680 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -78,4 +78,4 @@
@include breakpoint(680px up)
.hidden-for-desktop
- display: none
+ display: none !important