Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
cf-online-ui
Commits
fe254316
Commit
fe254316
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
feat: better responsivness
parent
450c6ec6
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env
+1
-1
1 addition, 1 deletion
.env
src/components/posts/Post.jsx
+7
-4
7 additions, 4 deletions
src/components/posts/Post.jsx
src/containers/AddPostForm.jsx
+4
-4
4 additions, 4 deletions
src/containers/AddPostForm.jsx
src/containers/GlobalStats.jsx
+15
-10
15 additions, 10 deletions
src/containers/GlobalStats.jsx
with
27 additions
and
19 deletions
.env
+
1
−
1
View file @
fe254316
REACT_APP_STYLEGUIDE_URL=https://styleguide.pir-test.eu/2.
0.4
REACT_APP_STYLEGUIDE_URL=https://styleguide.pir-test.eu/2.
1.0
REACT_APP_API_BASE_URL=https://cf2021.pir-test.eu/api
REACT_APP_API_BASE_URL=https://cf2021.pir-test.eu/api
REACT_APP_MATOMO_ID=135
REACT_APP_MATOMO_ID=135
REACT_APP_SENTRY_DSN=https://aa80453ff4d54b9a9c1b49e79060498a@sentry.pir-test.eu/14
REACT_APP_SENTRY_DSN=https://aa80453ff4d54b9a9c1b49e79060498a@sentry.pir-test.eu/14
This diff is collapsed.
Click to expand it.
src/components/posts/Post.jsx
+
7
−
4
View file @
fe254316
...
@@ -196,15 +196,18 @@ const Post = ({
...
@@ -196,15 +196,18 @@ const Post = ({
className
=
"w-8 h-8 lg:w-14 lg:h-14 rounded mr-3 object-cover"
className
=
"w-8 h-8 lg:w-14 lg:h-14 rounded mr-3 object-cover"
alt
=
{
author
.
name
}
alt
=
{
author
.
name
}
/>
/>
<
div
className
=
"flex-1"
>
{
/* overflow-hidden to avoid spammers damaging the UI */
}
<
div
className
=
"flex-1 overflow-hidden"
>
<
div
className
=
"mb-1"
>
<
div
className
=
"mb-1"
>
<
div
className
=
"flex justify-between items-start xl:items-center"
>
<
div
className
=
"flex justify-between items-start xl:items-center"
>
<
div
className
=
"flex flex-col xl:flex-row xl:items-center"
>
<
div
className
=
"flex flex-col xl:flex-row xl:items-center"
>
<
div
className
=
"flex flex-col xl:flex-row xl:items-center"
>
<
div
className
=
"flex flex-col xl:flex-row xl:items-center"
>
<
span
className
=
"font-bold"
>
{
author
.
name
}
</
span
>
<
span
className
=
"font-bold"
>
{
author
.
name
}
</
span
>
<
div
className
=
"mt-1 xl:mt-0 xl:ml-2 leading-tight"
>
<
div
className
=
"mt-1 xl:mt-0 xl:ml-2 leading-tight"
>
<
span
className
=
"text-grey-200 text-sm"
>
{
author
.
group
}
</
span
>
<
span
className
=
"text-grey-200 text-xs sm:text-sm"
>
<
span
className
=
"text-grey-200 ml-1 text-xs"
>
{
author
.
group
}
</
span
>
<
span
className
=
"text-grey-200 ml-1 text-xs sm:text-sm"
>
@
{
"
"
}
@
{
"
"
}
{
format
(
{
format
(
datetime
,
datetime
,
...
@@ -314,7 +317,7 @@ const Post = ({
...
@@ -314,7 +317,7 @@ const Post = ({
{
labels
}
{
labels
}
</
div
>
</
div
>
<
div
<
div
className
=
"text-sm lg:text-base text-black leading-normal content-block"
className
=
"text-sm lg:text-base text-black leading-normal content-block
overflow-x-scroll
"
dangerouslySetInnerHTML
=
{
htmlContent
}
dangerouslySetInnerHTML
=
{
htmlContent
}
></
div
>
></
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/containers/AddPostForm.jsx
+
4
−
4
View file @
fe254316
...
@@ -71,20 +71,20 @@ const AddPostForm = ({ className }) => {
...
@@ -71,20 +71,20 @@ const AddPostForm = ({ className }) => {
/>
/>
<
div
className
=
"form-field"
onChange
=
{
(
evt
)
=>
setType
(
evt
.
target
.
value
)
}
>
<
div
className
=
"form-field"
onChange
=
{
(
evt
)
=>
setType
(
evt
.
target
.
value
)
}
>
<
div
className
=
"form-field__wrapper"
>
<
div
className
=
"form-field__wrapper
form-field__wrapper--freeform flex-col sm:flex-row
"
>
<
div
className
=
"radio form-field__control"
>
<
div
className
=
"radio form-field__control"
>
<
label
>
<
label
>
<
input
type
=
"radio"
name
=
"postType"
value
=
"post"
defaultChecked
/>
<
input
type
=
"radio"
name
=
"postType"
value
=
"post"
defaultChecked
/>
<
span
>
<
span
className
=
"text-sm sm:text-base"
>
Přidávám
<
strong
>
běžný příspěvek
</
strong
>
Přidávám
<
strong
>
běžný příspěvek
</
strong
>
</
span
>
</
span
>
</
label
>
</
label
>
</
div
>
</
div
>
<
div
className
=
"radio form-field__control"
>
<
div
className
=
"radio form-field__control
ml-0 mt-4 sm:mt-0 sm:ml-4
"
>
<
label
>
<
label
>
<
input
type
=
"radio"
name
=
"postType"
value
=
"procedure-proposal"
/>
<
input
type
=
"radio"
name
=
"postType"
value
=
"procedure-proposal"
/>
<
span
>
<
span
className
=
"text-sm sm:text-base"
>
Přidávám
<
strong
>
návrh postupu
</
strong
>
Přidávám
<
strong
>
návrh postupu
</
strong
>
</
span
>
</
span
>
</
label
>
</
label
>
...
...
This diff is collapsed.
Click to expand it.
src/containers/GlobalStats.jsx
+
15
−
10
View file @
fe254316
...
@@ -25,8 +25,15 @@ const GlobalStats = () => {
...
@@ -25,8 +25,15 @@ const GlobalStats = () => {
?
items
[
nextProgramEntryId
]
?
items
[
nextProgramEntryId
]
:
null
;
:
null
;
const
nextProgramEntryCaption
=
nextProgramEntry
?
`
${
nextProgramEntry
.
title
}
@
${
format
(
nextProgramEntry
.
expectedStartAt
,
isToday
(
nextProgramEntry
.
expectedStartAt
)
?
"
H:mm
"
:
"
dd. MM. H:mm
"
)}
`
:
null
;
return
(
return
(
<
div
className
=
"bg-grey-50 flex space-x-4 leading-normal px-4 py-2 text-2xs md:text-xs lg:text-sm text-grey-300"
>
<
div
className
=
"bg-grey-50 flex space-x-4 leading-normal px-4 py-2 text-2xs md:text-xs lg:text-sm text-grey-300
whitespace-no-wrap
"
>
<
div
>
<
div
>
<
strong
>
{
onlineMembers
}
</
strong
>
{
"
"
}
<
strong
>
{
onlineMembers
}
</
strong
>
{
"
"
}
<
span
>
<
span
>
...
@@ -42,16 +49,14 @@ const GlobalStats = () => {
...
@@ -42,16 +49,14 @@ const GlobalStats = () => {
<
span
>
Vel. skupiny členů je
</
span
>
<
strong
>
{
groupSizeHalf
}
</
strong
>
<
span
>
Vel. skupiny členů je
</
span
>
<
strong
>
{
groupSizeHalf
}
</
strong
>
</
div
>
</
div
>
{
nextProgramEntry
&&
(
{
nextProgramEntry
&&
(
<
div
className
=
"flex-grow text-right hidden sm:block lg:hidden xl:block"
>
<
div
className
=
"flex-grow text-right hidden sm:block lg:hidden xl:block
truncate
"
>
Následuje:
{
"
"
}
Následuje:
{
"
"
}
<
Link
to
=
"/program"
className
=
"font-bold"
>
<
Link
{
nextProgramEntry
.
title
}
@
{
"
"
}
to
=
"/program"
{
format
(
className
=
"font-bold"
nextProgramEntry
.
expectedStartAt
,
title
=
{
nextProgramEntryCaption
}
isToday
(
nextProgramEntry
.
expectedStartAt
)
>
?
"
H:mm
"
{
nextProgramEntryCaption
}
:
"
dd. MM. H:mm
"
)
}
</
Link
>
</
Link
>
</
div
>
</
div
>
)
}
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment