Skip to content

Commit efe53c4

Browse files
authored
Merge pull request #2430 from oasisprotocol/kaja/rofl-section-horizontal-scroll
Truncate ROFL app ID for medium and small screens
2 parents a44a8b6 + a0cbbfd commit efe53c4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.changelog/2430.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Truncate ROFL app ID for medium and small screens

src/app/components/Rofl/RoflAppsList.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type RoflAppsListProps = {
1919

2020
export const RoflAppsList: FC<RoflAppsListProps> = ({ isLoading, limit, pagination, apps }) => {
2121
const { t } = useTranslation()
22-
const { isTablet } = useScreenSize()
22+
const { isTablet, isLaptop } = useScreenSize()
2323

2424
const tableColumns: TableColProps[] = [
2525
{ key: 'order', content: '' },
@@ -64,7 +64,14 @@ export const RoflAppsList: FC<RoflAppsListProps> = ({ isLoading, limit, paginati
6464
key: 'status',
6565
},
6666
{
67-
content: <RoflAppLink id={app.id} network={app.network} withSourceIndicator={false} />,
67+
content: (
68+
<RoflAppLink
69+
id={app.id}
70+
network={app.network}
71+
withSourceIndicator={false}
72+
alwaysTrim={isLaptop}
73+
/>
74+
),
6875
key: 'id',
6976
},
7077
{

0 commit comments

Comments
 (0)