-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[50307] Timestamp overflows the BorderBox on Storages index page (#13923
) * add x-scroll when the content is overflew * exchange the Provider and the Creator columns * change the layout of file storage list page based on new design for different breakpoints * remove unnecessary class * add a new class to hide an element for tablet and mini laptops * clean style sheet file from unnecessary rules * add an input for setting classes to the name of principal component * remove extra avatar component and use a class instead, to hide the name of avatar for mini laptop and tablet * fix specs for avatar helper * Update frontend/src/global_styles/layout/_base_mobile.sass Co-authored-by: Henriette Darge <[email protected]> * make the class name optional and use two classes for hiding name of avatar for tablet and small screen laptop * fix eslint errors * fix spec failing * use one class for hiding element in tablet and small laptop mode --------- Co-authored-by: Henriette Darge <[email protected]>
- Loading branch information
1 parent
811e835
commit 17480df
Showing
8 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,8 @@ module AvatarHelper | |
|
||
# Returns the avatar image tag for the given +user+ if avatars are enabled | ||
# +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <[email protected]>') | ||
def avatar(principal, size: 'default', hide_name: true, **options) | ||
build_principal_avatar_tag principal, size:, hide_name:, **options | ||
def avatar(principal, size: 'default', hide_name: true, name_classes: '', **options) | ||
build_principal_avatar_tag principal, size:, hide_name:, name_classes:, **options | ||
rescue StandardError => e | ||
Rails.logger.error "Failed to create avatar for #{principal}: #{e}" | ||
''.html_safe | ||
|
@@ -106,6 +106,7 @@ def build_principal_avatar_tag(user, **options) | |
link: tag_options[:link], | ||
size: tag_options[:size], | ||
hideName: tag_options[:hide_name], | ||
nameClasses: tag_options[:name_classes], | ||
title: tag_options.fetch(:title, '') | ||
} | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
modules/storages/app/components/storages/admin/storage_list_component.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
well done