1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 07:41:22 +02:00
Commit Graph

380 Commits

Author SHA1 Message Date
Sami Mazouz
bd1babcc05 Right align discussion controls dropdown on slidable item (#2330) 2020-09-30 16:53:50 -04:00
Alexander Skvortsov
a6632fc1b4 Restore fadeIn to 400ms (#2312)
This is the jQuery fadeIn default, which we were relying on before this animation was changed to pure CSS.
2020-09-25 21:15:24 +02:00
Alexander Skvortsov
a6876f0db8 Fix Post-actions being on top of Post Controls Dropdown
- This was accidentially introduced when an explicit z-index was added to reply-actions to prevent Post-footer from covering it
- Here, we revert that zindex, while making Post-footer inline-block to stop it from covering everything. We also set height=0 to stop implicitly added height
2020-09-18 15:33:01 +02:00
Franz Liedke
22e813c742 Extract a few changes from the Mithril 2 upgrade (#2262)
* Fix closing the composer with ESC key

Regression from #2161.

* Remove obsolete method

Regression from #2162.

* Mark method as protected

* Fade in posts in post stream using CSS

This also avoids a double-fade from the JavaScript code, which was
probably introduced in #2160.

* Fix fadeIn for post stream items

Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
2020-08-16 16:32:59 -04:00
一枚小猿
776af72c22 Fix less build error. (#2252) 2020-08-15 20:21:06 -04:00
Alexander Skvortsov
ba0e2db8a7 Extract Composer state (#2161)
Like previous "state PRs", this moves app-wide logic relating to
our "composer" widget to its own "state" class, which can be
referenced and called from all parts of the app. This lets us
avoid storing component instances, which we cannot do any longer
once we update to Mithril v2.

This was not as trivial as some of the other state changes, as we
tried to separate DOM effects (e.g. animations) from actual state
changes (e.g. minimizing or opening the composer).

New features:

- A new `app.screen()` method returns the current responsive screen
  mode. This lets us check what breakpoint we're on in JS land  
  without hardcoding / duplicating the actual breakpoints from CSS.
- A new `SuperTextarea` util exposes useful methods for directly
  interacting with and manipulating the text contents of e.g. our
  post editor.
- A new `ConfirmDocumentUnload` wrapper component encapsulates the
  logic for asking the user for confirmation when trying to close
  the browser window or navigating to another page. This is used in
  the composer to prevent accidentally losing unsaved post content.

There is still potential for future cleanups, but we finally want   
to unblock the Mithril update, so these will have to wait:

- Composer height change logic is very DOM-based, so should maybe
  not sit in the state.
- I would love to experiment with using composition rather than
  inheritance for the `ComposerBody` subclasses.
2020-07-25 00:17:25 +02:00
Alexander Skvortsov
2fef79f31a Make scrubber handle have transparent background (#2222) 2020-07-01 17:07:13 -04:00
w-4
c6fc8a8cd6 Fix header contents moving when opening modal (#2131)
* add navbar-fixed-top css class

* App-header position:fixed
2020-05-23 14:41:54 -04:00
Sami Mazouz
13c33c409e Add z-index rule as part of fixing replies dropdown menu width (#2178) 2020-05-22 18:50:39 -04:00
Alexander Skvortsov
af26bd22f6 Removed excess Widget class in favor of DashboardWidget (#2164) 2020-05-19 20:52:07 -04:00
julakali
26f251b497 Don't use body as tooltip container, allow notification area overflow (#2166)
* Don't use body as tooltip container, allow notification area overflow

Badge tooltips are using container: 'body', so they can overflow the
notification area. When the user navigates back while a badge tooltip is
showing, the tooltip remains visible.
This commit removes the body container attribute and instead allows the
notificationDropDown to overflow, so badge tooltips aren't cut off.
Instead, this adds overflow: hidden to NotificationList.
Fixes #2118.

* Remove newline
2020-05-15 20:10:40 -04:00
Alexander Skvortsov
83e69dc61d Improved UI of Switch with loading indicator (#2039)
* Moved loading indicator outside of checkboxes to improve ui
* Made loading indicator more visible, fade label when switch is loading
2020-04-10 22:51:58 +02:00
Hasan Özbey
762c021f86 Fix mobile notification bubble on colored header (#2109) 2020-04-10 12:50:36 +02:00
Franz Liedke
ebdef578c0 Permissions page: Tweak icon styling
- Give them a fixed width (independent of font library)
- Center the icons in their column
- De-emphasize the icons by applying a muted color

Fixes #2016, closes #2018.
2020-04-10 12:01:04 +02:00
Hasan Özbey
10ffef032f fix extensions page layout 2020-04-03 11:44:02 +02:00
Hasan Özbey
90c2e7602b Update Modal.less 2020-03-30 21:18:48 +02:00
Hasan Özbey
192b003173 fix modals 2020-03-30 21:18:48 +02:00
Franz Liedke
1e6d7efdc0 Connect labels with their form fields 2020-01-24 15:41:26 +01:00
Franz Liedke
e70444d934 Style validation errors 2020-01-24 15:41:26 +01:00
Franz Liedke
89b0e16ef3 Mail drivers: Separate definition from validation 2020-01-24 15:41:26 +01:00
Matthew Kilgore
f9da947d07 Removed LESS changes 2019-11-11 12:13:36 +01:00
Matthew Kilgore
37ecb7d9a5 Set border to left side only 2019-11-11 12:13:36 +01:00
Matthew Kilgore
6668f1b7ee Added border around post made by active user 2019-11-11 12:13:36 +01:00
David Sevilla Martin
898ab9000e Fix Modal width on <768px screens not occupying the whole page 2019-11-06 17:48:00 -05:00
David Sevilla Martín
80ff7eb4ea Mark notification as read without visiting discussion (#1874) 2019-09-09 23:36:06 +02:00
Annim Banerjee
4c731ac621 Updated names to match components in fontawsome (#1791)
fa-* named components are not present, hence updated to matching names.
2019-06-11 20:17:59 +02:00
Clark Winkelmann
f843764365 Fix dropdown icon not showing in UserCard when on UserPage
The rule hiding the icon in the UserHero was too broad and applied to UserCard in the list of posts as well
The float rule was redundant
2019-05-01 22:54:13 +02:00
Franz Liedke
1578dfe0e3 Mail settings: Only show necessary fields (#1169) 2019-03-15 17:54:14 +01:00
Arda Çebi
833056dd68 Profile group badge overlapping fix (#1506) 2018-12-12 22:24:30 +01:00
Toby Zerner
d4cebc5901 Include LESS mixins and variables in all frontend compilers 2018-11-22 12:09:50 +10:30
Toby Zerner
e98a1d33e9 Add "clear cache" button to admin 2018-11-22 08:03:43 +10:30
Toby Zerner
3394abde2b Fix positioning of hamburger menu unread indicator 2018-11-22 07:24:01 +10:30
Toby Zerner
a46396e944 New heading styles 2018-11-14 13:57:31 +10:30
Toby Zerner
b49774d0e2 Add a toolbar area to the TextEditor component
This is to be used for formatting buttons and the like. Although it is
displayed in the controls area at the moment, it is conceptually
different and may be relocated to the top of the text editor in the
future.
2018-11-12 17:21:15 +10:30
Toby Zerner
a6a4cf3fbc Improve appearance of text editor buttons
- Change preview icon to Font Awesome Regular instead of Solid
- Give the preview button a tooltip
- Change submit button icon to paper plane (shown on mobile)
- Tweak mobile header button touch target
- Scroll overflowing text editor controls horizontally
2018-11-12 17:19:37 +10:30
Franz Liedke
537e61ba00 Restore horizontal overflow for permission grid
Refs #1627.
2018-11-07 22:17:16 +01:00
David Sevilla Martín
e1dc724333 Remove overflow from .PermissionsPage-permissions (#1627) 2018-11-06 22:41:21 +01:00
Toby Zerner
52d7cd0461 Prevent long words/content from stretching the discussion list width 2018-10-21 14:47:41 +10:30
Tristian Kelly
805f0b9a47 Broader system font stack (#1600) 2018-10-17 23:55:41 +02:00
David Sevilla Martín
58980e323b Align search icon on search bar (#1599) 2018-10-16 20:40:39 +02:00
Charlie
de08988c00 Update ExtensionPage Style (#1560) 2018-09-26 17:00:27 +09:30
David Sevilla Martín
49d9571b8a Make user posts page similar to discussion page, add empty text 2018-09-22 14:02:14 -04:00
David Sevilla Martín
def0023382 Align icons & text in SideNav and Dropdown (#1544) 2018-09-22 21:35:45 +09:30
Toby Zerner
1114de5338 Fix group badge misalignment if there is no group icon 2018-09-21 11:20:54 +09:30
Toby Zerner
3a7f88b74c Use default system font instead of Open Sans 2018-09-21 11:20:17 +09:30
David Sevilla Martín
d23a9a56ee Fix PR issues from #1496 (#1553)
* Remove `+` added from copying a diff somewhere

* Fix font-size
2018-08-22 09:34:18 +09:30
Arda Çebi
e485d655ca Add descriptions and optimize extensions page (#1496) 2018-08-21 23:16:02 +02:00
David Sevilla Martín
cfc89b303d Fix post composer width bug on profile (#1541) 2018-08-14 06:44:28 +09:30
Toby Zerner
72778ddb8c Use flexbox for sideNav. fixes #1408 2018-07-20 12:34:43 +09:30
Toby Zerner
fbfe0c1e6f Revert Chrome image rendering tweak
The Chrome bug appears to have been fixed:
https://bugs.chromium.org/p/chromium/issues/detail?id=562162

This CSS rule makes images look very ugly in Safari, so removing it.

ref #1259
2018-07-20 12:03:49 +09:30